# sanzzz1125/fullstackcompass architecture

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

- Interactive diagram: https://gitdiagram.com/sanzzz1125/fullstackcompass
- Repository: https://github.com/sanzzz1125/fullstackcompass

## Overview

FullStack Compass is a MERN learning platform: learners enter through the React app, navigate structured lessons and practice material, and can use learning tools such as projects, clones, and interview prep. The client also supports accounts and saved learning state; API routes provide authentication and progress endpoints, with a separate Express progress service backed by MongoDB. The README documents a broad curriculum and practical learning features; unsampled pages are represented by their shared pages directory. Their internal behavior and some API wiring are not shown.

Main entry points: [`client/src/components/Layout.jsx`](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/Layout.jsx) (Learning layout), [`client/src/pages`](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages) (Web foundations), [`client/api/auth`](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/api/auth) (Auth endpoints), [`server/server.js`](https://github.com/sanzzz1125/fullstackcompass/blob/main/server/server.js) (Express service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning content"]
  node_foundations["Web foundations"]
  node_frontend["Frontend learning"]
  node_backend["Backend learning"]
  node_data_topics["Data learning"]
  node_production["Production topics"]
  node_quality["Quality topics"]
end

subgraph group_tools["Practice tools"]
  node_projects["Projects and clones"]
  node_interview["Interview tools"]
  node_codeblock["Code examples<br/>[CodeBlock.jsx]"]
  node_practice["Practice arena<br/>[PracticeArena.jsx]"]
  node_resources["Learning resources<br/>[ResourceCard.jsx]"]
end

subgraph group_client["Client experience"]
  node_app["React app<br/>[App.jsx]"]
  node_layout["Learning layout<br/>[Layout.jsx]"]
end

subgraph group_accounts["Accounts and progress"]
  node_auth_context["Account state<br/>[AuthContext.jsx]"]
end

subgraph group_service["API services"]
  node_auth_api["Auth endpoints"]
  node_jwt["JWT helpers<br/>[auth.js]"]
  node_user_model[("User model<br/>[User.js]")]
  node_api_db["API database connector<br/>[db.js]"]
  node_server["Express service<br/>[server.js]"]
  node_progress_routes["Progress routes<br/>[progress.js]"]
  node_progress_model[("Progress store model<br/>[Progress.js]")]
end

node_learner(("Learner"))
node_mongo[("MongoDB")]
node_api(("API service"))

node_learner -->|"uses"| node_app
node_app -->|"routes through"| node_layout
node_layout -.->|"renders lessons"| node_foundations
node_layout -.->|"renders lessons"| node_frontend
node_layout -.->|"renders lessons"| node_backend
node_layout -.->|"renders lessons"| node_data_topics
node_layout -.->|"renders lessons"| node_production
node_layout -.->|"renders lessons"| node_quality
node_layout -.->|"renders tools"| node_projects
node_layout -.->|"renders tools"| node_interview
node_foundations -->|"uses examples"| node_codeblock
node_foundations -->|"uses exercises"| node_practice
node_foundations -->|"shows resources"| node_resources
node_auth_context -->|"requests auth"| node_auth_api
node_auth_api -->|"uses tokens"| node_jwt
node_auth_api -->|"reads users"| node_user_model
node_auth_api -->|"connects database"| node_api_db
node_auth_context -->|"syncs progress"| node_api
node_api -.->|"serves progress"| node_server
node_server -->|"mounts routes"| node_progress_routes
node_progress_routes -->|"queries progress"| node_progress_model
node_server -->|"connects database"| node_mongo

click node_app "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/App.jsx"
click node_layout "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/Layout.jsx"
click node_foundations "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_frontend "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_backend "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_data_topics "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_production "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_quality "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_projects "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_interview "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages"
click node_codeblock "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/CodeBlock.jsx"
click node_practice "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/PracticeArena.jsx"
click node_resources "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/ResourceCard.jsx"
click node_auth_context "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/context/AuthContext.jsx"
click node_auth_api "https://github.com/sanzzz1125/fullstackcompass/tree/main/client/api/auth"
click node_jwt "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/api/lib/auth.js"
click node_user_model "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/api/lib/models/User.js"
click node_api_db "https://github.com/sanzzz1125/fullstackcompass/blob/main/client/api/lib/db.js"
click node_server "https://github.com/sanzzz1125/fullstackcompass/blob/main/server/server.js"
click node_progress_routes "https://github.com/sanzzz1125/fullstackcompass/blob/main/server/routes/progress.js"
click node_progress_model "https://github.com/sanzzz1125/fullstackcompass/blob/main/server/models/Progress.js"

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_foundations,node_frontend,node_backend,node_data_topics,node_production,node_quality toneBlue
class node_projects,node_interview,node_codeblock,node_practice,node_resources,node_mongo toneAmber
class node_app,node_layout,node_api toneMint
class node_auth_context toneRose
class node_auth_api,node_jwt,node_user_model,node_api_db,node_server,node_progress_routes,node_progress_model,node_learner toneIndigo
```

## Components

### Learning content

- [Web foundations](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Frontend learning](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Backend learning](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Data learning](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Production topics](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Quality topics](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`

### Practice tools

- [Projects and clones](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Interview tools](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/src/pages): `client/src/pages`
- [Code examples](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/CodeBlock.jsx): `client/src/components/CodeBlock.jsx`
- [Practice arena](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/PracticeArena.jsx): `client/src/components/PracticeArena.jsx`
- [Learning resources](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/ResourceCard.jsx): `client/src/components/ResourceCard.jsx`

### Client experience

- [React app](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Learning layout](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/components/Layout.jsx): `client/src/components/Layout.jsx`

### Accounts and progress

- [Account state](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/src/context/AuthContext.jsx): `client/src/context/AuthContext.jsx`

### API services

- [Auth endpoints](https://github.com/sanzzz1125/fullstackcompass/tree/main/client/api/auth): `client/api/auth`
- [JWT helpers](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/api/lib/auth.js): `client/api/lib/auth.js`
- [User model](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/api/lib/models/User.js): `client/api/lib/models/User.js`
- [API database connector](https://github.com/sanzzz1125/fullstackcompass/blob/main/client/api/lib/db.js): `client/api/lib/db.js`
- [Express service](https://github.com/sanzzz1125/fullstackcompass/blob/main/server/server.js): `server/server.js`
- [Progress routes](https://github.com/sanzzz1125/fullstackcompass/blob/main/server/routes/progress.js): `server/routes/progress.js`
- [Progress store model](https://github.com/sanzzz1125/fullstackcompass/blob/main/server/models/Progress.js): `server/models/Progress.js`

### Other components

- **Learner**
- **MongoDB**
- **API service**

## Connections

- Learner → React app: uses (evidence: `README.md`)
- React app → Learning layout: routes through (evidence: `client/src/App.jsx`)
- Learning layout → Web foundations: renders lessons
- Learning layout → Frontend learning: renders lessons
- Learning layout → Backend learning: renders lessons
- Learning layout → Data learning: renders lessons
- Learning layout → Production topics: renders lessons
- Learning layout → Quality topics: renders lessons
- Learning layout → Projects and clones: renders tools
- Learning layout → Interview tools: renders tools
- Web foundations → Code examples: uses examples (evidence: `client/src/pages/HTML.jsx`)
- Web foundations → Practice arena: uses exercises (evidence: `client/src/pages/HTML.jsx`)
- Web foundations → Learning resources: shows resources (evidence: `client/src/pages/HTML.jsx`)
- Account state → Auth endpoints: requests auth (evidence: `client/src/context/AuthContext.jsx`)
- Auth endpoints → JWT helpers: uses tokens (evidence: `client/api/auth/login.js`)
- Auth endpoints → User model: reads users (evidence: `client/api/auth/login.js`)
- Auth endpoints → API database connector: connects database (evidence: `client/api/auth/login.js`)
- Account state → API service: syncs progress (evidence: `client/src/context/AuthContext.jsx`)
- API service → Express service: serves progress
- Express service → Progress routes: mounts routes (evidence: `server/server.js`)
- Progress routes → Progress store model: queries progress (evidence: `server/routes/progress.js`)
- Express service → MongoDB: connects database (evidence: `server/server.js`)
