# sashacherryy/fullstack-cv architecture

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

- Interactive diagram: https://gitdiagram.com/sashacherryy/fullstack-cv
- Repository: https://github.com/sashacherryy/fullstack-cv

## Overview

This repository is a portfolio site backed by a NestJS API: visitors can view public portfolio pages, while the API serves profile/contact and project data; an admin page also exists. The API workflow routes requests through controllers to services, which query PostgreSQL, then return portfolio data. The graph includes the visible web pages and API modules, but the excerpts do not establish how the web client calls the API or what the admin page does, so those connections are left unverified.

Main entry points: [`api/src/modules/app.module.ts`](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.module.ts) (App module), [`api/src/modules/projects/projects.controller.ts`](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/projects.controller.ts) (Projects routes), [`api/src/database/db.service.ts`](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/database/db.service.ts) (Database service), [`api/src/modules/projects/projects.service.ts`](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/projects.service.ts) (Project queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_public["Public pages<br/>[page.tsx]"]
  node_public_layout["Public layout<br/>[layout.tsx]"]
  node_admin["Admin page<br/>[page.tsx]"]
  node_web_api["API client<br/>[api.ts]"]
end

subgraph group_api["API routes"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_app_module["App module<br/>[app.module.ts]"]
  node_app_route["Root route<br/>[app.controller.ts]"]
  node_projects_route["Projects routes"]
  node_validation["Zod validation"]
  node_profile_route["Profile route"]
  node_contacts_route["Contacts route"]
  node_health["Health route"]
  node_exception_filter["Exception filter"]
end

subgraph group_domain["Portfolio services"]
  node_app_service["Greeting service<br/>[app.service.ts]"]
  node_projects_service["Project queries"]
  node_project_query["Project filters"]
  node_profile_service["Profile assembly<br/>[profile.service.ts]"]
  node_contacts_service["Contact queries"]
end

subgraph group_storage["Persistence and infrastructure"]
  node_db_service["Database service<br/>[db.service.ts]"]
  node_schema["Data schema<br/>[schema.ts]"]
  node_postgres[("PostgreSQL")]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_public
node_visitor -.->|"opens"| node_admin
node_public -.->|"requests data"| node_web_api
node_web_api -.->|"calls API"| node_projects_route
node_bootstrap -->|"starts"| node_app_module
node_bootstrap -->|"registers"| node_exception_filter
node_app_module -->|"registers"| node_app_route
node_app_module -->|"imports module"| node_projects_route
node_app_module -->|"imports module"| node_profile_route
node_app_module -->|"imports module"| node_health
node_app_route -->|"calls"| node_app_service
node_projects_route -->|"validates query"| node_validation
node_projects_route -->|"uses schema"| node_project_query
node_projects_route -->|"calls"| node_projects_service
node_projects_service -->|"types query"| node_project_query
node_projects_service -->|"queries"| node_db_service
node_projects_service -->|"selects projects"| node_schema
node_profile_route -->|"calls"| node_profile_service
node_profile_service -->|"queries profile"| node_db_service
node_profile_service -->|"selects profile"| node_schema
node_profile_service -->|"loads contacts"| node_contacts_service
node_contacts_route -->|"calls"| node_contacts_service
node_contacts_service -->|"queries"| node_db_service
node_contacts_service -->|"selects contacts"| node_schema
node_db_service -->|"configures ORM"| node_schema
node_db_service -->|"connects"| node_postgres

click node_public "https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/app/(public)/page.tsx"
click node_public_layout "https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/app/(public)/layout.tsx"
click node_admin "https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/app/admin/page.tsx"
click node_web_api "https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/lib/api.ts"
click node_bootstrap "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/main.ts"
click node_app_module "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.module.ts"
click node_app_route "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.controller.ts"
click node_app_service "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.service.ts"
click node_projects_route "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/projects.controller.ts"
click node_projects_service "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/projects.service.ts"
click node_project_query "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/dto/projects-query.schema.ts"
click node_validation "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/common/pipes/ZodValidationPipe.ts"
click node_profile_route "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/profile/profile.controller.ts"
click node_profile_service "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/profile/profile.service.ts"
click node_contacts_route "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/contacts/contacts.controller.ts"
click node_contacts_service "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/contacts/contacts.service.ts"
click node_health "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/health/health.controller.ts"
click node_db_service "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/database/db.service.ts"
click node_schema "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/database/schema.ts"
click node_exception_filter "https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/common/filters/all-exceptions.filter.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_public,node_public_layout,node_admin,node_web_api toneBlue
class node_bootstrap,node_app_module,node_app_route,node_projects_route,node_validation,node_profile_route,node_contacts_route,node_health,node_exception_filter toneAmber
class node_app_service,node_projects_service,node_project_query,node_profile_service,node_contacts_service toneMint
class node_db_service,node_schema,node_postgres toneRose
class node_visitor toneIndigo
```

## Components

### Web interface

- [Public pages](https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/app/(public)/page.tsx): `web/src/app/(public)/page.tsx`
- [Public layout](https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/app/(public)/layout.tsx): `web/src/app/(public)/layout.tsx`
- [Admin page](https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/app/admin/page.tsx): `web/src/app/admin/page.tsx`
- [API client](https://github.com/sashacherryy/fullstack-cv/blob/main/web/src/lib/api.ts): `web/src/lib/api.ts`

### API routes

- [App bootstrap](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/main.ts): `api/src/main.ts`
- [App module](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.module.ts): `api/src/modules/app.module.ts`
- [Root route](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.controller.ts): `api/src/modules/app.controller.ts`
- [Projects routes](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/projects.controller.ts): `api/src/modules/projects/projects.controller.ts`
- [Zod validation](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/common/pipes/ZodValidationPipe.ts): `api/src/common/pipes/ZodValidationPipe.ts`
- [Profile route](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/profile/profile.controller.ts): `api/src/modules/profile/profile.controller.ts`
- [Contacts route](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/contacts/contacts.controller.ts): `api/src/modules/contacts/contacts.controller.ts`
- [Health route](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/health/health.controller.ts): `api/src/modules/health/health.controller.ts`
- [Exception filter](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/common/filters/all-exceptions.filter.ts): `api/src/common/filters/all-exceptions.filter.ts`

### Portfolio services

- [Greeting service](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/app.service.ts): `api/src/modules/app.service.ts`
- [Project queries](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/projects.service.ts): `api/src/modules/projects/projects.service.ts`
- [Project filters](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/projects/dto/projects-query.schema.ts): `api/src/modules/projects/dto/projects-query.schema.ts`
- [Profile assembly](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/profile/profile.service.ts): `api/src/modules/profile/profile.service.ts`
- [Contact queries](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/modules/contacts/contacts.service.ts): `api/src/modules/contacts/contacts.service.ts`

### Persistence and infrastructure

- [Database service](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/database/db.service.ts): `api/src/database/db.service.ts`
- [Data schema](https://github.com/sashacherryy/fullstack-cv/blob/main/api/src/database/schema.ts): `api/src/database/schema.ts`
- **PostgreSQL**

### Other components

- **Visitor**

## Connections

- Visitor → Public pages: opens
- Visitor → Admin page: opens
- Public pages → API client: requests data
- API client → Projects routes: calls API
- App bootstrap → App module: starts (evidence: `api/src/main.ts`)
- App bootstrap → Exception filter: registers (evidence: `api/src/main.ts`)
- App module → Root route: registers (evidence: `api/src/modules/app.module.ts`)
- App module → Projects routes: imports module (evidence: `api/src/modules/app.module.ts`)
- App module → Profile route: imports module (evidence: `api/src/modules/app.module.ts`)
- App module → Health route: imports module (evidence: `api/src/modules/app.module.ts`)
- Root route → Greeting service: calls (evidence: `api/src/modules/app.controller.ts`)
- Projects routes → Zod validation: validates query (evidence: `api/src/modules/projects/projects.controller.ts`)
- Projects routes → Project filters: uses schema (evidence: `api/src/modules/projects/projects.controller.ts`)
- Projects routes → Project queries: calls (evidence: `api/src/modules/projects/projects.controller.ts`)
- Project queries → Project filters: types query (evidence: `api/src/modules/projects/projects.service.ts`)
- Project queries → Database service: queries (evidence: `api/src/modules/projects/projects.service.ts`)
- Project queries → Data schema: selects projects (evidence: `api/src/modules/projects/projects.service.ts`)
- Profile route → Profile assembly: calls (evidence: `api/src/modules/profile/profile.controller.ts`)
- Profile assembly → Database service: queries profile (evidence: `api/src/modules/profile/profile.service.ts`)
- Profile assembly → Data schema: selects profile (evidence: `api/src/modules/profile/profile.service.ts`)
- Profile assembly → Contact queries: loads contacts (evidence: `api/src/modules/profile/profile.service.ts`)
- Contacts route → Contact queries: calls (evidence: `api/src/modules/contacts/contacts.controller.ts`)
- Contact queries → Database service: queries (evidence: `api/src/modules/contacts/contacts.service.ts`)
- Contact queries → Data schema: selects contacts (evidence: `api/src/modules/contacts/contacts.service.ts`)
- Database service → Data schema: configures ORM (evidence: `api/src/database/db.service.ts`)
- Database service → PostgreSQL: connects (evidence: `api/src/database/db.service.ts`)
