# ritam771/careerpilot architecture

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

- Interactive diagram: https://gitdiagram.com/ritam771/careerpilot
- Repository: https://github.com/ritam771/careerpilot

## Overview

CareerPilot is a browser-based career-preparation app. Users enter through login or signup, then navigate to practice areas, company preparation, mock tests, profile tools, and resume analysis. Mock tests have the clearest end-to-end workflow: the test page starts or resumes attempts, the test screen saves answers and submits, and the result screen fetches and displays performance. Authentication and theme preferences use browser storage; mock-attempt operations use an HTTP API. The README is only a Vite template and documents no product capabilities; several page implementations were not sampled, so their internal links are omitted.

Main entry points: [`src/App.jsx`](https://github.com/ritam771/careerpilot/blob/main/src/App.jsx) (Route App), [`src/services/auth.js`](https://github.com/ritam771/careerpilot/blob/main/src/services/auth.js) (Authentication), [`src/pages/MockTests.jsx`](https://github.com/ritam771/careerpilot/blob/main/src/pages/MockTests.jsx) (Mock Test Catalog), [`src/services/attemptService.js`](https://github.com/ritam771/careerpilot/blob/main/src/services/attemptService.js) (Attempt API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App Entry"]
  node_app["Route App<br/>[App.jsx]"]
  node_theme["Theme Provider<br/>[ThemeContext.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
end

subgraph group_practice["Preparation"]
  node_aptitude["Aptitude Practice<br/>[Aptitude.jsx]"]
  node_reasoning["Reasoning Practice<br/>[Reasoning.jsx]"]
  node_technical["Technical Practice<br/>[Technical.jsx]"]
  node_coding["Coding Practice<br/>[Coding.jsx]"]
  node_company["Company Prep<br/>[Companyprep.jsx]"]
  node_resume["Resume Analyzer"]
end

subgraph group_mock["Mock Testing"]
  node_mock_catalog["Mock Test Catalog<br/>[MockTests.jsx]"]
  node_test_screen["Test Session<br/>[MockTestScreen.jsx]"]
  node_result_screen["Performance Result"]
end

subgraph group_account["Account And Settings"]
  node_profile["Profile<br/>[Profile.jsx]"]
  node_settings["Settings<br/>[Settings.jsx]"]
  node_admin["Admin Panel<br/>[AdminPanel.jsx]"]
  node_login["Login<br/>[login.jsx]"]
  node_signup["Sign Up<br/>[Signin.jsx]"]
  node_avatar["Avatar<br/>[Avatar.jsx]"]
end

subgraph group_services["Services"]
  node_auth_service["Authentication<br/>[auth.js]"]
  node_attempt_service["Attempt API Client<br/>[attemptService.js]"]
  node_browser_storage[("Browser Storage")]
  node_attempt_api{{"Attempt Backend"}}
  node_avatar_api{{"DiceBear Service"}}
end

node_browser_user(("User"))

node_browser_user -->|"opens app"| node_app
node_app -->|"wraps routes"| node_theme
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_aptitude
node_app -->|"routes to"| node_reasoning
node_app -->|"routes to"| node_technical
node_app -->|"routes to"| node_coding
node_app -->|"routes to"| node_company
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_settings
node_app -->|"routes to"| node_mock_catalog
node_app -->|"routes to"| node_resume
node_app -->|"routes to"| node_admin
node_login -->|"authenticates with"| node_auth_service
node_signup -->|"registers with"| node_auth_service
node_auth_service -->|"reads and writes"| node_browser_storage
node_theme -->|"persists theme"| node_browser_storage
node_profile -->|"loads user"| node_auth_service
node_dashboard -->|"loads user"| node_auth_service
node_dashboard -->|"renders"| node_avatar
node_avatar -->|"loads image"| node_avatar_api
node_mock_catalog -->|"starts and checks"| node_attempt_service
node_mock_catalog -->|"renders session"| node_test_screen
node_mock_catalog -->|"renders result"| node_result_screen
node_test_screen -->|"saves and submits"| node_attempt_service
node_result_screen -->|"fetches result"| node_attempt_service
node_attempt_service -->|"sends HTTP requests"| node_attempt_api

click node_app "https://github.com/ritam771/careerpilot/blob/main/src/App.jsx"
click node_theme "https://github.com/ritam771/careerpilot/blob/main/src/context/ThemeContext.jsx"
click node_dashboard "https://github.com/ritam771/careerpilot/blob/main/src/pages/Dashboard.jsx"
click node_aptitude "https://github.com/ritam771/careerpilot/blob/main/src/pages/Aptitude.jsx"
click node_reasoning "https://github.com/ritam771/careerpilot/blob/main/src/pages/Reasoning.jsx"
click node_technical "https://github.com/ritam771/careerpilot/blob/main/src/pages/Technical.jsx"
click node_coding "https://github.com/ritam771/careerpilot/blob/main/src/pages/Coding.jsx"
click node_company "https://github.com/ritam771/careerpilot/blob/main/src/pages/Companyprep.jsx"
click node_resume "https://github.com/ritam771/careerpilot/blob/main/src/pages/AIResumeAnalyzer.jsx"
click node_mock_catalog "https://github.com/ritam771/careerpilot/blob/main/src/pages/MockTests.jsx"
click node_test_screen "https://github.com/ritam771/careerpilot/blob/main/src/components/MockTestScreen.jsx"
click node_result_screen "https://github.com/ritam771/careerpilot/blob/main/src/components/MockResultScreen.jsx"
click node_profile "https://github.com/ritam771/careerpilot/blob/main/src/pages/Profile.jsx"
click node_settings "https://github.com/ritam771/careerpilot/blob/main/src/pages/Settings.jsx"
click node_admin "https://github.com/ritam771/careerpilot/blob/main/src/pages/AdminPanel.jsx"
click node_login "https://github.com/ritam771/careerpilot/blob/main/src/pages/login.jsx"
click node_signup "https://github.com/ritam771/careerpilot/blob/main/src/pages/Signin.jsx"
click node_avatar "https://github.com/ritam771/careerpilot/blob/main/src/components/Avatar.jsx"
click node_auth_service "https://github.com/ritam771/careerpilot/blob/main/src/services/auth.js"
click node_attempt_service "https://github.com/ritam771/careerpilot/blob/main/src/services/attemptService.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_app,node_theme,node_dashboard,node_browser_user toneBlue
class node_aptitude,node_reasoning,node_technical,node_coding,node_company,node_resume toneAmber
class node_mock_catalog,node_test_screen,node_result_screen toneMint
class node_profile,node_settings,node_admin,node_login,node_signup,node_avatar toneRose
class node_auth_service,node_attempt_service,node_browser_storage,node_attempt_api,node_avatar_api toneIndigo
```

## Components

### App Entry

- [Route App](https://github.com/ritam771/careerpilot/blob/main/src/App.jsx): `src/App.jsx`
- [Theme Provider](https://github.com/ritam771/careerpilot/blob/main/src/context/ThemeContext.jsx): `src/context/ThemeContext.jsx`
- [Dashboard](https://github.com/ritam771/careerpilot/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`

### Preparation

- [Aptitude Practice](https://github.com/ritam771/careerpilot/blob/main/src/pages/Aptitude.jsx): `src/pages/Aptitude.jsx`
- [Reasoning Practice](https://github.com/ritam771/careerpilot/blob/main/src/pages/Reasoning.jsx): `src/pages/Reasoning.jsx`
- [Technical Practice](https://github.com/ritam771/careerpilot/blob/main/src/pages/Technical.jsx): `src/pages/Technical.jsx`
- [Coding Practice](https://github.com/ritam771/careerpilot/blob/main/src/pages/Coding.jsx): `src/pages/Coding.jsx`
- [Company Prep](https://github.com/ritam771/careerpilot/blob/main/src/pages/Companyprep.jsx): `src/pages/Companyprep.jsx`
- [Resume Analyzer](https://github.com/ritam771/careerpilot/blob/main/src/pages/AIResumeAnalyzer.jsx): `src/pages/AIResumeAnalyzer.jsx`

### Mock Testing

- [Mock Test Catalog](https://github.com/ritam771/careerpilot/blob/main/src/pages/MockTests.jsx): `src/pages/MockTests.jsx`
- [Test Session](https://github.com/ritam771/careerpilot/blob/main/src/components/MockTestScreen.jsx): `src/components/MockTestScreen.jsx`
- [Performance Result](https://github.com/ritam771/careerpilot/blob/main/src/components/MockResultScreen.jsx): `src/components/MockResultScreen.jsx`

### Account And Settings

- [Profile](https://github.com/ritam771/careerpilot/blob/main/src/pages/Profile.jsx): `src/pages/Profile.jsx`
- [Settings](https://github.com/ritam771/careerpilot/blob/main/src/pages/Settings.jsx): `src/pages/Settings.jsx`
- [Admin Panel](https://github.com/ritam771/careerpilot/blob/main/src/pages/AdminPanel.jsx): `src/pages/AdminPanel.jsx`
- [Login](https://github.com/ritam771/careerpilot/blob/main/src/pages/login.jsx): `src/pages/login.jsx`
- [Sign Up](https://github.com/ritam771/careerpilot/blob/main/src/pages/Signin.jsx): `src/pages/Signin.jsx`
- [Avatar](https://github.com/ritam771/careerpilot/blob/main/src/components/Avatar.jsx): `src/components/Avatar.jsx`

### Services

- [Authentication](https://github.com/ritam771/careerpilot/blob/main/src/services/auth.js): `src/services/auth.js`
- [Attempt API Client](https://github.com/ritam771/careerpilot/blob/main/src/services/attemptService.js): `src/services/attemptService.js`
- **Browser Storage**
- **Attempt Backend**
- **DiceBear Service**

### Other components

- **User**

## Connections

- User → Route App: opens app (evidence: `src/App.jsx`)
- Route App → Theme Provider: wraps routes (evidence: `src/App.jsx`)
- Route App → Login: routes to (evidence: `src/App.jsx`)
- Route App → Sign Up: routes to (evidence: `src/App.jsx`)
- Route App → Dashboard: routes to (evidence: `src/App.jsx`)
- Route App → Aptitude Practice: routes to (evidence: `src/App.jsx`)
- Route App → Reasoning Practice: routes to (evidence: `src/App.jsx`)
- Route App → Technical Practice: routes to (evidence: `src/App.jsx`)
- Route App → Coding Practice: routes to (evidence: `src/App.jsx`)
- Route App → Company Prep: routes to (evidence: `src/App.jsx`)
- Route App → Profile: routes to (evidence: `src/App.jsx`)
- Route App → Settings: routes to (evidence: `src/App.jsx`)
- Route App → Mock Test Catalog: routes to (evidence: `src/App.jsx`)
- Route App → Resume Analyzer: routes to (evidence: `src/App.jsx`)
- Route App → Admin Panel: routes to (evidence: `src/App.jsx`)
- Login → Authentication: authenticates with (evidence: `src/pages/login.jsx`)
- Sign Up → Authentication: registers with (evidence: `src/pages/Signin.jsx`)
- Authentication → Browser Storage: reads and writes (evidence: `src/services/auth.js`)
- Theme Provider → Browser Storage: persists theme (evidence: `src/context/ThemeContext.jsx`)
- Profile → Authentication: loads user (evidence: `src/pages/Profile.jsx`)
- Dashboard → Authentication: loads user (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Avatar: renders (evidence: `src/pages/Dashboard.jsx`)
- Avatar → DiceBear Service: loads image (evidence: `src/components/Avatar.jsx`)
- Mock Test Catalog → Attempt API Client: starts and checks (evidence: `src/pages/MockTests.jsx`)
- Mock Test Catalog → Test Session: renders session (evidence: `src/pages/MockTests.jsx`)
- Mock Test Catalog → Performance Result: renders result (evidence: `src/pages/MockTests.jsx`)
- Test Session → Attempt API Client: saves and submits (evidence: `src/components/MockTestScreen.jsx`)
- Performance Result → Attempt API Client: fetches result (evidence: `src/components/MockResultScreen.jsx`)
- Attempt API Client → Attempt Backend: sends HTTP requests (evidence: `src/services/attemptService.js`)
