# goudatharun30/pathfolio architecture

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

## Overview

Pathfolio combines a React career-development workspace with an Express API. Users discover career paths, authenticate, maintain a profile, generate and track a learning plan, complete recommended projects, and build resume and portfolio outputs; an AI assistant adds career guidance. The graph groups related pages and backend domains rather than listing every view or model. The README documents several capabilities whose detailed implementation was not sampled, so those subsystems are represented at their existing directory paths; their internal links are not asserted.

Main entry points: [`client/src/services/api.js`](https://github.com/goudatharun30/pathfolio/blob/main/client/src/services/api.js) (API client), [`server/src/server.js`](https://github.com/goudatharun30/pathfolio/blob/main/server/src/server.js) (Express API), [`server/src/controllers/learningController.js`](https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/learningController.js) (Plan generation and progress), [`server/src/controllers/projectController.js`](https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/projectController.js) (Project recommendations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Career workspace"]
  node_app["React app and routes<br/>[App.jsx]"]
  node_authctx["Session context<br/>[AuthContext.jsx]"]
  node_authsvc["Authentication client<br/>[authService.js]"]
  node_clientapi["API client<br/>[api.js]"]
  node_dashboard["Career dashboard<br/>[Dashboard.jsx]"]
  node_profileui["Profile editor<br/>[Profile.jsx]"]
end

subgraph group_server["API and identity"]
  node_express["Express API<br/>[server.js]"]
  node_authroutes["Authentication routes<br/>[authRoutes.js]"]
  node_authcontroller["Authentication<br/>[authController.js]"]
  node_middleware["JWT authorization<br/>[authMiddleware.js]"]
  node_profilemodel[("User profile store<br/>[Profile.js]")]
  node_db[("MongoDB or memory store<br/>[database.js]")]
end

subgraph group_career["Career planning"]
  node_roadmapui["Roadmap explorer<br/>[Roadmaps.jsx]"]
  node_roadmapdata["Roadmap catalog<br/>[roadmapsData.js]"]
  node_learningui["Learning planner"]
  node_projectsui["Project recommendations<br/>[Projects.jsx]"]
  node_learningroutes["Learning routes<br/>[learningRoutes.js]"]
  node_learningcontroller["Plan generation and progress"]
  node_planner["Schedule algorithm"]
  node_projectcontroller["Project recommendations"]
  node_learningmodel[("Learning path store")]
  node_projectmodel[("Project store")]
end

subgraph group_outputs["Career materials"]
  node_resumeui["Resume builder<br/>[Resume.jsx]"]
  node_portfolioui["Portfolio builder<br/>[Portfolio.jsx]"]
end

subgraph group_ai["AI assistance"]
  node_floatingai["Floating career assistant<br/>[FloatingAi.jsx]"]
  node_aiapi["AI API routes<br/>[aiRoutes.js]"]
  node_aicontroller["AI career service<br/>[aiController.js]"]
  node_aiservice["Provider selection<br/>[aiService.js]"]
  node_providers["AI providers"]
end

node_person(("Career seeker"))

node_person -->|"uses"| node_app
node_app -->|"reads session"| node_authctx
node_authctx -->|"calls"| node_authsvc
node_authsvc -->|"requests auth"| node_clientapi
node_dashboard -->|"loads data"| node_clientapi
node_profileui -->|"loads and saves"| node_clientapi
node_roadmapui -->|"uses catalog"| node_roadmapdata
node_learningui -.->|"requests plans"| node_clientapi
node_projectsui -->|"requests projects"| node_clientapi
node_resumeui -.->|"requests resume"| node_clientapi
node_portfolioui -.->|"requests portfolio"| node_clientapi
node_floatingai -->|"requests advice"| node_clientapi
node_clientapi -->|"HTTP requests"| node_express
node_express -->|"mounts routes"| node_authroutes
node_express -->|"mounts routes"| node_learningroutes
node_express -->|"mounts routes"| node_aiapi
node_authroutes -->|"dispatches"| node_authcontroller
node_authcontroller -->|"reads and writes"| node_db
node_authcontroller -->|"creates profile"| node_profilemodel
node_learningroutes -->|"guards routes"| node_middleware
node_learningroutes -->|"dispatches"| node_learningcontroller
node_learningcontroller -->|"generates schedule"| node_planner
node_learningcontroller -->|"reads and writes"| node_learningmodel
node_learningcontroller -->|"checks store"| node_db
node_projectcontroller -->|"loads projects"| node_projectmodel
node_projectcontroller -->|"syncs completion"| node_profilemodel
node_projectcontroller -->|"checks store"| node_db
node_aiapi -.->|"dispatches"| node_aicontroller
node_aicontroller -.->|"requests generation"| node_aiservice
node_aiservice -->|"selects provider"| node_providers

click node_app "https://github.com/goudatharun30/pathfolio/blob/main/client/src/App.jsx"
click node_authctx "https://github.com/goudatharun30/pathfolio/blob/main/client/src/context/AuthContext.jsx"
click node_authsvc "https://github.com/goudatharun30/pathfolio/blob/main/client/src/services/authService.js"
click node_clientapi "https://github.com/goudatharun30/pathfolio/blob/main/client/src/services/api.js"
click node_dashboard "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Dashboard.jsx"
click node_profileui "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Profile.jsx"
click node_roadmapui "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Roadmaps.jsx"
click node_roadmapdata "https://github.com/goudatharun30/pathfolio/blob/main/client/src/data/roadmapsData.js"
click node_learningui "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/LearningPlanner.jsx"
click node_projectsui "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Projects.jsx"
click node_resumeui "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Resume.jsx"
click node_portfolioui "https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Portfolio.jsx"
click node_floatingai "https://github.com/goudatharun30/pathfolio/blob/main/client/src/components/FloatingAi.jsx"
click node_express "https://github.com/goudatharun30/pathfolio/blob/main/server/src/server.js"
click node_authroutes "https://github.com/goudatharun30/pathfolio/blob/main/server/src/routes/authRoutes.js"
click node_authcontroller "https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/authController.js"
click node_middleware "https://github.com/goudatharun30/pathfolio/blob/main/server/src/middleware/authMiddleware.js"
click node_learningroutes "https://github.com/goudatharun30/pathfolio/blob/main/server/src/routes/learningRoutes.js"
click node_learningcontroller "https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/learningController.js"
click node_planner "https://github.com/goudatharun30/pathfolio/blob/main/server/src/services/plannerAlgorithm.js"
click node_projectcontroller "https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/projectController.js"
click node_profilemodel "https://github.com/goudatharun30/pathfolio/blob/main/server/src/models/Profile.js"
click node_learningmodel "https://github.com/goudatharun30/pathfolio/blob/main/server/src/models/UserLearningPath.js"
click node_projectmodel "https://github.com/goudatharun30/pathfolio/blob/main/server/src/models/ProjectRecommendation.js"
click node_db "https://github.com/goudatharun30/pathfolio/blob/main/server/src/config/database.js"
click node_aiapi "https://github.com/goudatharun30/pathfolio/blob/main/server/src/routes/aiRoutes.js"
click node_aicontroller "https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/aiController.js"
click node_aiservice "https://github.com/goudatharun30/pathfolio/blob/main/server/src/services/ai/aiService.js"
click node_providers "https://github.com/goudatharun30/pathfolio/tree/main/server/src/services/ai"

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_authctx,node_authsvc,node_clientapi,node_dashboard,node_profileui toneBlue
class node_express,node_authroutes,node_authcontroller,node_middleware,node_profilemodel,node_db toneAmber
class node_roadmapui,node_roadmapdata,node_learningui,node_projectsui,node_learningroutes,node_learningcontroller,node_planner,node_projectcontroller,node_learningmodel,node_projectmodel toneMint
class node_resumeui,node_portfolioui toneRose
class node_floatingai,node_aiapi,node_aicontroller,node_aiservice,node_providers,node_person toneIndigo
```

## Components

### Career workspace

- [React app and routes](https://github.com/goudatharun30/pathfolio/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Session context](https://github.com/goudatharun30/pathfolio/blob/main/client/src/context/AuthContext.jsx): `client/src/context/AuthContext.jsx`
- [Authentication client](https://github.com/goudatharun30/pathfolio/blob/main/client/src/services/authService.js): `client/src/services/authService.js`
- [API client](https://github.com/goudatharun30/pathfolio/blob/main/client/src/services/api.js): `client/src/services/api.js`
- [Career dashboard](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Dashboard.jsx): `client/src/pages/Dashboard.jsx`
- [Profile editor](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Profile.jsx): `client/src/pages/Profile.jsx`

### API and identity

- [Express API](https://github.com/goudatharun30/pathfolio/blob/main/server/src/server.js): `server/src/server.js`
- [Authentication routes](https://github.com/goudatharun30/pathfolio/blob/main/server/src/routes/authRoutes.js): `server/src/routes/authRoutes.js`
- [Authentication](https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/authController.js): `server/src/controllers/authController.js`
- [JWT authorization](https://github.com/goudatharun30/pathfolio/blob/main/server/src/middleware/authMiddleware.js): `server/src/middleware/authMiddleware.js`
- [User profile store](https://github.com/goudatharun30/pathfolio/blob/main/server/src/models/Profile.js): `server/src/models/Profile.js`
- [MongoDB or memory store](https://github.com/goudatharun30/pathfolio/blob/main/server/src/config/database.js): `server/src/config/database.js`

### Career planning

- [Roadmap explorer](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Roadmaps.jsx): `client/src/pages/Roadmaps.jsx`
- [Roadmap catalog](https://github.com/goudatharun30/pathfolio/blob/main/client/src/data/roadmapsData.js): `client/src/data/roadmapsData.js`
- [Learning planner](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/LearningPlanner.jsx): `client/src/pages/LearningPlanner.jsx`
- [Project recommendations](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Projects.jsx): `client/src/pages/Projects.jsx`
- [Learning routes](https://github.com/goudatharun30/pathfolio/blob/main/server/src/routes/learningRoutes.js): `server/src/routes/learningRoutes.js`
- [Plan generation and progress](https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/learningController.js): `server/src/controllers/learningController.js`
- [Schedule algorithm](https://github.com/goudatharun30/pathfolio/blob/main/server/src/services/plannerAlgorithm.js): `server/src/services/plannerAlgorithm.js`
- [Project recommendations](https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/projectController.js): `server/src/controllers/projectController.js`
- [Learning path store](https://github.com/goudatharun30/pathfolio/blob/main/server/src/models/UserLearningPath.js): `server/src/models/UserLearningPath.js`
- [Project store](https://github.com/goudatharun30/pathfolio/blob/main/server/src/models/ProjectRecommendation.js): `server/src/models/ProjectRecommendation.js`

### Career materials

- [Resume builder](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Resume.jsx): `client/src/pages/Resume.jsx`
- [Portfolio builder](https://github.com/goudatharun30/pathfolio/blob/main/client/src/pages/Portfolio.jsx): `client/src/pages/Portfolio.jsx`

### AI assistance

- [Floating career assistant](https://github.com/goudatharun30/pathfolio/blob/main/client/src/components/FloatingAi.jsx): `client/src/components/FloatingAi.jsx`
- [AI API routes](https://github.com/goudatharun30/pathfolio/blob/main/server/src/routes/aiRoutes.js): `server/src/routes/aiRoutes.js`
- [AI career service](https://github.com/goudatharun30/pathfolio/blob/main/server/src/controllers/aiController.js): `server/src/controllers/aiController.js`
- [Provider selection](https://github.com/goudatharun30/pathfolio/blob/main/server/src/services/ai/aiService.js): `server/src/services/ai/aiService.js`
- [AI providers](https://github.com/goudatharun30/pathfolio/tree/main/server/src/services/ai): `server/src/services/ai`

### Other components

- **Career seeker**

## Connections

- Career seeker → React app and routes: uses
- React app and routes → Session context: reads session (evidence: `client/src/App.jsx`)
- Session context → Authentication client: calls (evidence: `client/src/context/AuthContext.jsx`)
- Authentication client → API client: requests auth (evidence: `client/src/services/authService.js`)
- Career dashboard → API client: loads data (evidence: `client/src/pages/Dashboard.jsx`)
- Profile editor → API client: loads and saves (evidence: `client/src/pages/Profile.jsx`)
- Roadmap explorer → Roadmap catalog: uses catalog
- Learning planner → API client: requests plans
- Project recommendations → API client: requests projects (evidence: `client/src/pages/Projects.jsx`)
- Resume builder → API client: requests resume
- Portfolio builder → API client: requests portfolio
- Floating career assistant → API client: requests advice (evidence: `client/src/components/FloatingAi.jsx`)
- API client → Express API: HTTP requests (evidence: `client/src/services/api.js`)
- Express API → Authentication routes: mounts routes (evidence: `server/src/server.js`)
- Express API → Learning routes: mounts routes (evidence: `server/src/server.js`)
- Express API → AI API routes: mounts routes (evidence: `server/src/server.js`)
- Authentication routes → Authentication: dispatches (evidence: `server/src/routes/authRoutes.js`)
- Authentication → MongoDB or memory store: reads and writes (evidence: `server/src/controllers/authController.js`)
- Authentication → User profile store: creates profile (evidence: `server/src/controllers/authController.js`)
- Learning routes → JWT authorization: guards routes (evidence: `server/src/routes/learningRoutes.js`)
- Learning routes → Plan generation and progress: dispatches (evidence: `server/src/routes/learningRoutes.js`)
- Plan generation and progress → Schedule algorithm: generates schedule (evidence: `server/src/controllers/learningController.js`)
- Plan generation and progress → Learning path store: reads and writes (evidence: `server/src/controllers/learningController.js`)
- Plan generation and progress → MongoDB or memory store: checks store (evidence: `server/src/controllers/learningController.js`)
- Project recommendations → Project store: loads projects (evidence: `server/src/controllers/projectController.js`)
- Project recommendations → User profile store: syncs completion (evidence: `server/src/controllers/projectController.js`)
- Project recommendations → MongoDB or memory store: checks store (evidence: `server/src/controllers/projectController.js`)
- AI API routes → AI career service: dispatches
- AI career service → Provider selection: requests generation
- Provider selection → AI providers: selects provider (evidence: `server/src/services/ai/aiService.js`)
