# landazuripaul/nest-react architecture

> Architecture diagram of the GitHub repository landazuripaul/nest-react, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/landazuripaul/nest-react
- Repository: https://github.com/landazuripaul/nest-react

## Overview

This repository is a minimal NestJS–React boilerplate. The user-facing flow is a browser rendering the React app, which requests the server’s root status response and separately checks `/version`; the server routes these through its status controller and service. Configuration is loaded and validated during server startup, while a shared domain package defines the dictionary type used by both sides. The graph focuses on runtime behavior and documented version capabilities; unsampled details are omitted.

Main entry points: [`packages/client/src/components/App/App.tsx`](https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/components/App/App.tsx) (React app), [`packages/server/src/modules/status/status.controller.ts`](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.controller.ts) (Status routes), [`packages/server/src/modules/status/status.service.ts`](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.service.ts) (Status service), [`packages/client/src/utils/checkServerVersion.ts`](https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/checkServerVersion.ts) (Version check)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React client"]
  node_app["React app<br/>[App.tsx]"]
  node_version_check["Version check"]
  node_logger["Debug logger<br/>[logger.ts]"]
  node_api_url["API URL<br/>[getApiUrl.ts]"]
end

subgraph group_server["NestJS server"]
  node_server["Nest bootstrap<br/>[main.ts]"]
  node_api_module["API module<br/>[api.module.ts]"]
  node_config_module["Config module<br/>[config.module.ts]"]
  node_config_service["Config service<br/>[config.service.ts]"]
  node_status_module["Status module<br/>[status.module.ts]"]
  node_status_controller["Status routes"]
  node_status_service["Status service<br/>[status.service.ts]"]
end

subgraph group_shared["Shared contracts"]
  node_dictionary["Dictionary type"]
end

node_browser(("Browser"))

node_browser -->|"renders"| node_app
node_app -->|"uses URL"| node_api_url
node_app -->|"fetches status"| node_status_controller
node_app -->|"runs check"| node_version_check
node_version_check -->|"fetches version"| node_status_controller
node_app -->|"logs errors"| node_logger
node_version_check -->|"logs errors"| node_logger
node_server -->|"creates app"| node_api_module
node_server -->|"reads config"| node_config_service
node_api_module -->|"imports"| node_config_module
node_api_module -->|"imports"| node_status_module
node_config_module -->|"provides"| node_config_service
node_status_module -->|"registers routes"| node_status_controller
node_status_module -->|"provides"| node_status_service
node_status_controller -->|"calls"| node_status_service
node_status_service -->|"reads settings"| node_config_service
node_app -->|"uses type"| node_dictionary
node_status_controller -->|"uses type"| node_dictionary
node_status_service -->|"uses type"| node_dictionary

click node_app "https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/components/App/App.tsx"
click node_version_check "https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/checkServerVersion.ts"
click node_logger "https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/logger.ts"
click node_api_url "https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/getApiUrl.ts"
click node_server "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/main.ts"
click node_api_module "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/api.module.ts"
click node_config_module "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/config/config.module.ts"
click node_config_service "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/config/config.service.ts"
click node_status_module "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.module.ts"
click node_status_controller "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.controller.ts"
click node_status_service "https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.service.ts"
click node_dictionary "https://github.com/landazuripaul/nest-react/blob/main/packages/domain/src/interfaces/dictionary.interface.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_version_check,node_logger,node_api_url,node_browser toneBlue
class node_server,node_api_module,node_config_module,node_config_service,node_status_module,node_status_controller,node_status_service toneAmber
class node_dictionary toneMint
```

## Components

### React client

- [React app](https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/components/App/App.tsx): `packages/client/src/components/App/App.tsx`
- [Version check](https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/checkServerVersion.ts): `packages/client/src/utils/checkServerVersion.ts`
- [Debug logger](https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/logger.ts): `packages/client/src/utils/logger.ts`
- [API URL](https://github.com/landazuripaul/nest-react/blob/main/packages/client/src/utils/getApiUrl.ts): `packages/client/src/utils/getApiUrl.ts`

### NestJS server

- [Nest bootstrap](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/main.ts): `packages/server/src/main.ts`
- [API module](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/api.module.ts): `packages/server/src/modules/api.module.ts`
- [Config module](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/config/config.module.ts): `packages/server/src/modules/config/config.module.ts`
- [Config service](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/config/config.service.ts): `packages/server/src/modules/config/config.service.ts`
- [Status module](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.module.ts): `packages/server/src/modules/status/status.module.ts`
- [Status routes](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.controller.ts): `packages/server/src/modules/status/status.controller.ts`
- [Status service](https://github.com/landazuripaul/nest-react/blob/main/packages/server/src/modules/status/status.service.ts): `packages/server/src/modules/status/status.service.ts`

### Shared contracts

- [Dictionary type](https://github.com/landazuripaul/nest-react/blob/main/packages/domain/src/interfaces/dictionary.interface.ts): `packages/domain/src/interfaces/dictionary.interface.ts`

### Other components

- **Browser**

## Connections

- Browser → React app: renders (evidence: `README.md`)
- React app → API URL: uses URL (evidence: `packages/client/src/components/App/App.tsx`)
- React app → Status routes: fetches status (evidence: `packages/client/src/components/App/App.tsx`)
- React app → Version check: runs check (evidence: `packages/client/src/components/App/App.tsx`)
- Version check → Status routes: fetches version (evidence: `packages/client/src/utils/checkServerVersion.ts`)
- React app → Debug logger: logs errors (evidence: `packages/client/src/components/App/App.tsx`)
- Version check → Debug logger: logs errors (evidence: `packages/client/src/utils/checkServerVersion.ts`)
- Nest bootstrap → API module: creates app (evidence: `packages/server/src/main.ts`)
- Nest bootstrap → Config service: reads config (evidence: `packages/server/src/main.ts`)
- API module → Config module: imports (evidence: `packages/server/src/modules/api.module.ts`)
- API module → Status module: imports (evidence: `packages/server/src/modules/api.module.ts`)
- Config module → Config service: provides (evidence: `packages/server/src/modules/config/config.module.ts`)
- Status module → Status routes: registers routes (evidence: `packages/server/src/modules/status/status.module.ts`)
- Status module → Status service: provides (evidence: `packages/server/src/modules/status/status.module.ts`)
- Status routes → Status service: calls (evidence: `packages/server/src/modules/status/status.controller.ts`)
- Status service → Config service: reads settings (evidence: `packages/server/src/modules/status/status.service.ts`)
- React app → Dictionary type: uses type (evidence: `packages/client/src/components/App/App.tsx`)
- Status routes → Dictionary type: uses type (evidence: `packages/server/src/modules/status/status.controller.ts`)
- Status service → Dictionary type: uses type (evidence: `packages/server/src/modules/status/status.service.ts`)
