# gabstefanoni01/norte architecture

> Architecture diagram of the GitHub repository gabstefanoni01/norte, 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/gabstefanoni01/norte
- Repository: https://github.com/gabstefanoni01/norte

## Overview

Norte is a career-mentoring platform for young people: users register, build a profile, complete a discovery assessment, and use personalized plans, an AI mentor, résumé/interview tools, progress views, and achievements. Angular pages call frontend services and an Express API; the backend handles domain operations and uses PostgreSQL. The README documents Gemini-backed features with template/rule fallbacks and optional email delivery. Some feature implementations were not sampled, so their internal links are left unverified rather than inferred.

Main entry points: [`backend/src/modules/discovery/discovery.service.js`](https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/discovery/discovery.service.js) (Discovery assessment), [`frontend/src/app/services/auth.service.ts`](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/services/auth.service.ts) (Auth experience), [`backend/src/modules/plans/plans.service.js`](https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/plans/plans.service.js) (Plan generation), [`frontend/src/app/services/api.service.ts`](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/services/api.service.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Angular application"]
  node_web_app["Angular app<br/>[app.component.ts]"]
  node_routing["Page routing<br/>[app.routes.ts]"]
  node_api_client["API client<br/>[api.service.ts]"]
end

subgraph group_identity["Identity and profile"]
  node_auth_ui["Auth experience<br/>[auth.service.ts]"]
  node_profile_ui["Profile page"]
  node_auth_api["Registration and auth<br/>[auth.service.js]"]
  node_user_profile["User and profile"]
  node_postgres[("PostgreSQL<br/>[pool.js]")]
end

subgraph group_guidance["Career guidance"]
  node_discovery_ui["Discovery page"]
  node_discovery_api["Discovery assessment"]
  node_plans_ui["Evolution plan<br/>[plans.component.ts]"]
  node_plans_api["Plan generation<br/>[plans.service.js]"]
  node_mentor["AI mentor chat"]
  node_resume_ui["Résumé page"]
  node_resume_api["Résumé and interview<br/>[resume.service.js]"]
end

subgraph group_engagement["Progress and operations"]
  node_dashboard["Progress dashboard"]
  node_achievements["Achievements"]
  node_admin["Admin tools"]
end

node_young_person(("Young person"))
node_gemini{{"Google Gemini"}}
node_email_provider{{"SMTP provider"}}

node_young_person -.->|"uses"| node_web_app
node_web_app -->|"routes through"| node_routing
node_routing -->|"guards pages"| node_auth_ui
node_auth_ui -->|"sends requests"| node_api_client
node_profile_ui -->|"uses account"| node_auth_ui
node_auth_api -->|"queries users"| node_postgres
node_auth_api -.->|"sends codes"| node_email_provider
node_discovery_ui -.->|"requests API"| node_api_client
node_discovery_ui -.->|"submits answers"| node_discovery_api
node_discovery_api -.->|"stores results"| node_postgres
node_discovery_api -.->|"enriches results"| node_gemini
node_plans_ui -.->|"requests plans"| node_plans_api
node_plans_api -.->|"generates roadmap"| node_gemini
node_mentor -.->|"powers chat"| node_gemini
node_resume_ui -->|"requests tools"| node_resume_api
node_resume_api -.->|"assists generation"| node_gemini
node_dashboard -.->|"loads progress"| node_api_client
node_achievements -.->|"persists progress"| node_postgres
node_admin -->|"triggers reminders"| node_plans_api

click node_web_app "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/app.component.ts"
click node_routing "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/app.routes.ts"
click node_api_client "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/services/api.service.ts"
click node_auth_ui "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/services/auth.service.ts"
click node_profile_ui "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/profile/profile.component.ts"
click node_auth_api "https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/auth/auth.service.js"
click node_user_profile "https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/users"
click node_postgres "https://github.com/gabstefanoni01/norte/blob/main/backend/src/database/pool.js"
click node_discovery_ui "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/discovery/discovery.component.ts"
click node_discovery_api "https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/discovery/discovery.service.js"
click node_plans_ui "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/plans/plans.component.ts"
click node_plans_api "https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/plans/plans.service.js"
click node_mentor "https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/ai"
click node_resume_ui "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/resume/resume.component.ts"
click node_resume_api "https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/resume/resume.service.js"
click node_dashboard "https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/dashboard/dashboard.component.ts"
click node_achievements "https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/achievements"
click node_admin "https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/admin"

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_web_app,node_routing,node_api_client toneBlue
class node_auth_ui,node_profile_ui,node_auth_api,node_user_profile,node_postgres toneAmber
class node_discovery_ui,node_discovery_api,node_plans_ui,node_plans_api,node_mentor,node_resume_ui,node_resume_api toneMint
class node_dashboard,node_achievements,node_admin toneRose
class node_young_person,node_gemini,node_email_provider toneIndigo
```

## Components

### Angular application

- [Angular app](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/app.component.ts): `frontend/src/app/app.component.ts`
- [Page routing](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/app.routes.ts): `frontend/src/app/app.routes.ts`
- [API client](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/services/api.service.ts): `frontend/src/app/services/api.service.ts`

### Identity and profile

- [Auth experience](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/services/auth.service.ts): `frontend/src/app/services/auth.service.ts`
- [Profile page](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/profile/profile.component.ts): `frontend/src/app/pages/profile/profile.component.ts`
- [Registration and auth](https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/auth/auth.service.js): `backend/src/modules/auth/auth.service.js`
- [User and profile](https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/users): `backend/src/modules/users`
- [PostgreSQL](https://github.com/gabstefanoni01/norte/blob/main/backend/src/database/pool.js): `backend/src/database/pool.js`

### Career guidance

- [Discovery page](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/discovery/discovery.component.ts): `frontend/src/app/pages/discovery/discovery.component.ts`
- [Discovery assessment](https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/discovery/discovery.service.js): `backend/src/modules/discovery/discovery.service.js`
- [Evolution plan](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/plans/plans.component.ts): `frontend/src/app/pages/plans/plans.component.ts`
- [Plan generation](https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/plans/plans.service.js): `backend/src/modules/plans/plans.service.js`
- [AI mentor chat](https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/ai): `backend/src/modules/ai`
- [Résumé page](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/resume/resume.component.ts): `frontend/src/app/pages/resume/resume.component.ts`
- [Résumé and interview](https://github.com/gabstefanoni01/norte/blob/main/backend/src/modules/resume/resume.service.js): `backend/src/modules/resume/resume.service.js`

### Progress and operations

- [Progress dashboard](https://github.com/gabstefanoni01/norte/blob/main/frontend/src/app/pages/dashboard/dashboard.component.ts): `frontend/src/app/pages/dashboard/dashboard.component.ts`
- [Achievements](https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/achievements): `backend/src/modules/achievements`
- [Admin tools](https://github.com/gabstefanoni01/norte/tree/main/backend/src/modules/admin): `backend/src/modules/admin`

### Other components

- **Young person**
- **Google Gemini**
- **SMTP provider**

## Connections

- Young person → Angular app: uses (evidence: `README.md`)
- Angular app → Page routing: routes through
- Page routing → Auth experience: guards pages (evidence: `frontend/src/app/app.routes.ts`)
- Auth experience → API client: sends requests (evidence: `frontend/src/app/services/auth.service.ts`)
- Profile page → Auth experience: uses account (evidence: `frontend/src/app/pages/profile/profile.component.ts`)
- Registration and auth → PostgreSQL: queries users (evidence: `backend/src/modules/auth/auth.service.js`)
- Registration and auth → SMTP provider: sends codes (evidence: `README.md`)
- Discovery page → API client: requests API
- Discovery page → Discovery assessment: submits answers (evidence: `README.md`)
- Discovery assessment → PostgreSQL: stores results
- Discovery assessment → Google Gemini: enriches results (evidence: `README.md`)
- Evolution plan → Plan generation: requests plans (evidence: `README.md`)
- Plan generation → Google Gemini: generates roadmap (evidence: `README.md`)
- AI mentor chat → Google Gemini: powers chat (evidence: `README.md`)
- Résumé page → Résumé and interview: requests tools
- Résumé and interview → Google Gemini: assists generation (evidence: `README.md`)
- Progress dashboard → API client: loads progress
- Achievements → PostgreSQL: persists progress
- Admin tools → Plan generation: triggers reminders (evidence: `backend/src/modules/admin/admin.routes.js`)
