# sandhruv/cv-shortlisting-system architecture

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

- Interactive diagram: https://gitdiagram.com/sandhruv/cv-shortlisting-system
- Repository: https://github.com/sandhruv/cv-shortlisting-system

## Overview

Vettora is a recruitment and assessment platform serving candidates, employers, and university users. The main workflow spans account access and profiles, job discovery and applications, employer screening, coding assessments, and interviews; separate areas provide administration, analytics, and HR subscriptions. The React client routes users to role-specific dashboards and assessment rooms, while the Express service exposes domain APIs backed by MongoDB and optional Redis. Source excerpts are partial and the README is empty, so unsampled subsystem links are included only where the source index or shown code supports them.

Main entry points: [`server/server.js`](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/server.js) (API and socket server), [`client/src/App.jsx`](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/App.jsx) (Route application), [`client/src/pages/HRDashboard.jsx`](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/HRDashboard.jsx) (HR workspace), [`client/src/pages/LpuFacultyDashboard.jsx`](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuFacultyDashboard.jsx) (Faculty workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web experience"]
  node_app["Route application<br/>[App.jsx]"]
  node_hr_ui["HR workspace<br/>[HRDashboard.jsx]"]
  node_admin_ui["Admin workspace<br/>[AdminDashboard.jsx]"]
  node_student_ui["Student workspace"]
  node_faculty_ui["Faculty workspace"]
  node_lpu_admin_ui["University admin"]
  node_lpu_student_ui["University student"]
  node_api_client["API client<br/>[api.js]"]
  node_job_ui["Job detail<br/>[JobDetail.jsx]"]
  node_profile_ui["Candidate profile<br/>[StudentProfile.jsx]"]
  node_compiler_ui["Coding workspace<br/>[CompilerEmbed.jsx]"]
  node_proctor_ui["Proctoring viewer"]
  node_video_ui["Video calls<br/>[VideoCall.jsx]"]
  node_ai_room["AI interview room"]
  node_voice_interview["Voice interview<br/>[VoiceInterview.jsx]"]
end

subgraph group_recruitment["Recruitment workflow"]
  node_jobs["Job management<br/>[jobController.js]"]
  node_applications["Applications"]
  node_resumes["Resume management"]
end

subgraph group_assessment["Assessment and interviews"]
  node_interviews["Interview management"]
  node_coding_tests["Coding assessments"]
  node_compiler_api["Code compilation<br/>[compileRoutes.js]"]
end

subgraph group_platform["Platform services"]
  node_server["API and socket server<br/>[server.js]"]
  node_auth["Token authorization<br/>[authMiddleware.js]"]
  node_mongo[("MongoDB<br/>[db.js]")]
  node_redis[("Redis cache<br/>[redis.js]")]
  node_payment["HR subscriptions<br/>[paymentRoutes.js]"]
  node_analytics["Analytics APIs<br/>[analyticsRoutes.js]"]
  node_admin["Administration APIs<br/>[adminController.js]"]
end

subgraph group_profile_ai["Profile intelligence"]
  node_profile["Profile processing"]
  node_profile_store[("Profile records<br/>[Profile.js]")]
  node_linkedin["LinkedIn import<br/>[linkedinScraper.js]"]
  node_profile_text["Text preparation<br/>[textCleaner.js]"]
  node_chunker["Profile chunking<br/>[chunker.js]"]
end

node_user(("Platform users"))

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_hr_ui
node_app -->|"routes to"| node_admin_ui
node_app -->|"routes to"| node_student_ui
node_app -->|"routes to"| node_faculty_ui
node_app -->|"routes to"| node_lpu_admin_ui
node_app -->|"routes to"| node_lpu_student_ui
node_app -->|"routes to"| node_job_ui
node_app -->|"routes to"| node_profile_ui
node_app -->|"routes to"| node_ai_room
node_app -->|"routes to"| node_voice_interview
node_hr_ui -->|"requests through"| node_api_client
node_faculty_ui -->|"requests through"| node_api_client
node_hr_ui -->|"renders"| node_video_ui
node_hr_ui -->|"renders"| node_compiler_ui
node_hr_ui -->|"renders"| node_proctor_ui
node_faculty_ui -->|"renders"| node_video_ui
node_faculty_ui -->|"renders"| node_compiler_ui
node_faculty_ui -->|"renders"| node_proctor_ui
node_server -->|"connects"| node_mongo
node_server -->|"connects"| node_redis
node_server -->|"protects routes"| node_auth
node_server -->|"mounts"| node_payment
node_server -->|"mounts"| node_analytics
node_server -->|"mounts"| node_compiler_api
node_server -.->|"routes requests"| node_jobs
node_server -.->|"routes requests"| node_applications
node_server -->|"routes requests"| node_resumes
node_server -->|"routes requests"| node_interviews
node_server -->|"routes requests"| node_coding_tests
node_server -->|"routes requests"| node_admin
node_profile -->|"reads and writes"| node_profile_store
node_profile -->|"imports profiles"| node_linkedin
node_profile -->|"cleans text"| node_profile_text
node_profile -->|"creates chunks"| node_chunker
node_server -->|"routes requests"| node_profile
node_coding_tests -.->|"persists assessments"| node_mongo
node_interviews -.->|"persists interviews"| node_mongo
node_payment -->|"updates user plan"| node_mongo

click node_app "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/App.jsx"
click node_hr_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/HRDashboard.jsx"
click node_admin_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/AdminDashboard.jsx"
click node_student_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/StudentDashboard.jsx"
click node_faculty_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuFacultyDashboard.jsx"
click node_lpu_admin_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuAdminDashboard.jsx"
click node_lpu_student_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuStudentDashboard.jsx"
click node_api_client "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/services/api.js"
click node_job_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/JobDetail.jsx"
click node_profile_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/StudentProfile.jsx"
click node_compiler_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/CompilerEmbed.jsx"
click node_proctor_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/ProctoringViewer.jsx"
click node_video_ui "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/VideoCall.jsx"
click node_ai_room "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/AiInterviewRoom.jsx"
click node_voice_interview "https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/VoiceInterview.jsx"
click node_server "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/server.js"
click node_auth "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/middleware/authMiddleware.js"
click node_mongo "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/config/db.js"
click node_redis "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/config/redis.js"
click node_jobs "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/jobController.js"
click node_applications "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/applicationController.js"
click node_resumes "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/resumeController.js"
click node_interviews "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/interviewController.js"
click node_coding_tests "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/codingTestController.js"
click node_compiler_api "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/routes/compileRoutes.js"
click node_payment "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/routes/paymentRoutes.js"
click node_analytics "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/routes/analyticsRoutes.js"
click node_admin "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/adminController.js"
click node_profile "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/profileController.js"
click node_profile_store "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/models/Profile.js"
click node_linkedin "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/services/linkedinScraper.js"
click node_profile_text "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/services/textCleaner.js"
click node_chunker "https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/services/chunker.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_hr_ui,node_admin_ui,node_student_ui,node_faculty_ui,node_lpu_admin_ui,node_lpu_student_ui,node_api_client,node_job_ui,node_profile_ui,node_compiler_ui,node_proctor_ui,node_video_ui,node_ai_room,node_voice_interview,node_user toneBlue
class node_jobs,node_applications,node_resumes toneAmber
class node_interviews,node_coding_tests,node_compiler_api toneMint
class node_server,node_auth,node_mongo,node_redis,node_payment,node_analytics,node_admin toneRose
class node_profile,node_profile_store,node_linkedin,node_profile_text,node_chunker toneIndigo
```

## Components

### Web experience

- [Route application](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [HR workspace](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/HRDashboard.jsx): `client/src/pages/HRDashboard.jsx`
- [Admin workspace](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/AdminDashboard.jsx): `client/src/pages/AdminDashboard.jsx`
- [Student workspace](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/StudentDashboard.jsx): `client/src/pages/StudentDashboard.jsx`
- [Faculty workspace](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuFacultyDashboard.jsx): `client/src/pages/LpuFacultyDashboard.jsx`
- [University admin](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuAdminDashboard.jsx): `client/src/pages/LpuAdminDashboard.jsx`
- [University student](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/LpuStudentDashboard.jsx): `client/src/pages/LpuStudentDashboard.jsx`
- [API client](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/services/api.js): `client/src/services/api.js`
- [Job detail](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/JobDetail.jsx): `client/src/pages/JobDetail.jsx`
- [Candidate profile](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/pages/StudentProfile.jsx): `client/src/pages/StudentProfile.jsx`
- [Coding workspace](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/CompilerEmbed.jsx): `client/src/components/CompilerEmbed.jsx`
- [Proctoring viewer](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/ProctoringViewer.jsx): `client/src/components/ProctoringViewer.jsx`
- [Video calls](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/VideoCall.jsx): `client/src/components/VideoCall.jsx`
- [AI interview room](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/AiInterviewRoom.jsx): `client/src/components/AiInterviewRoom.jsx`
- [Voice interview](https://github.com/sandhruv/cv-shortlisting-system/blob/main/client/src/components/VoiceInterview.jsx): `client/src/components/VoiceInterview.jsx`

### Recruitment workflow

- [Job management](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/jobController.js): `server/controllers/jobController.js`
- [Applications](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/applicationController.js): `server/controllers/applicationController.js`
- [Resume management](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/resumeController.js): `server/controllers/resumeController.js`

### Assessment and interviews

- [Interview management](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/interviewController.js): `server/controllers/interviewController.js`
- [Coding assessments](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/codingTestController.js): `server/controllers/codingTestController.js`
- [Code compilation](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/routes/compileRoutes.js): `server/routes/compileRoutes.js`

### Platform services

- [API and socket server](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/server.js): `server/server.js`
- [Token authorization](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/middleware/authMiddleware.js): `server/middleware/authMiddleware.js`
- [MongoDB](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/config/db.js): `server/config/db.js`
- [Redis cache](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/config/redis.js): `server/config/redis.js`
- [HR subscriptions](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/routes/paymentRoutes.js): `server/routes/paymentRoutes.js`
- [Analytics APIs](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/routes/analyticsRoutes.js): `server/routes/analyticsRoutes.js`
- [Administration APIs](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/adminController.js): `server/controllers/adminController.js`

### Profile intelligence

- [Profile processing](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/controllers/profileController.js): `server/controllers/profileController.js`
- [Profile records](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/models/Profile.js): `server/models/Profile.js`
- [LinkedIn import](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/services/linkedinScraper.js): `server/services/linkedinScraper.js`
- [Text preparation](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/services/textCleaner.js): `server/services/textCleaner.js`
- [Profile chunking](https://github.com/sandhruv/cv-shortlisting-system/blob/main/server/services/chunker.js): `server/services/chunker.js`

### Other components

- **Platform users**

## Connections

- Platform users → Route application: uses (evidence: `client/src/App.jsx`)
- Route application → HR workspace: routes to (evidence: `client/src/App.jsx`)
- Route application → Admin workspace: routes to (evidence: `client/src/App.jsx`)
- Route application → Student workspace: routes to (evidence: `client/src/App.jsx`)
- Route application → Faculty workspace: routes to (evidence: `client/src/App.jsx`)
- Route application → University admin: routes to (evidence: `client/src/App.jsx`)
- Route application → University student: routes to (evidence: `client/src/App.jsx`)
- Route application → Job detail: routes to (evidence: `client/src/App.jsx`)
- Route application → Candidate profile: routes to (evidence: `client/src/App.jsx`)
- Route application → AI interview room: routes to (evidence: `client/src/App.jsx`)
- Route application → Voice interview: routes to (evidence: `client/src/App.jsx`)
- HR workspace → API client: requests through (evidence: `client/src/pages/HRDashboard.jsx`)
- Faculty workspace → API client: requests through (evidence: `client/src/pages/LpuFacultyDashboard.jsx`)
- HR workspace → Video calls: renders (evidence: `client/src/pages/HRDashboard.jsx`)
- HR workspace → Coding workspace: renders (evidence: `client/src/pages/HRDashboard.jsx`)
- HR workspace → Proctoring viewer: renders (evidence: `client/src/pages/HRDashboard.jsx`)
- Faculty workspace → Video calls: renders (evidence: `client/src/pages/LpuFacultyDashboard.jsx`)
- Faculty workspace → Coding workspace: renders (evidence: `client/src/pages/LpuFacultyDashboard.jsx`)
- Faculty workspace → Proctoring viewer: renders (evidence: `client/src/pages/LpuFacultyDashboard.jsx`)
- API and socket server → MongoDB: connects (evidence: `server/server.js`)
- API and socket server → Redis cache: connects (evidence: `server/server.js`)
- API and socket server → Token authorization: protects routes (evidence: `server/server.js`)
- API and socket server → HR subscriptions: mounts (evidence: `server/server.js`)
- API and socket server → Analytics APIs: mounts (evidence: `server/server.js`)
- API and socket server → Code compilation: mounts (evidence: `server/server.js`)
- API and socket server → Job management: routes requests
- API and socket server → Applications: routes requests
- API and socket server → Resume management: routes requests (evidence: `server/server.js`)
- API and socket server → Interview management: routes requests (evidence: `server/server.js`)
- API and socket server → Coding assessments: routes requests (evidence: `server/server.js`)
- API and socket server → Administration APIs: routes requests (evidence: `server/server.js`)
- Profile processing → Profile records: reads and writes (evidence: `server/controllers/profileController.js`)
- Profile processing → LinkedIn import: imports profiles (evidence: `server/controllers/profileController.js`)
- Profile processing → Text preparation: cleans text (evidence: `server/controllers/profileController.js`)
- Profile processing → Profile chunking: creates chunks (evidence: `server/controllers/profileController.js`)
- API and socket server → Profile processing: routes requests (evidence: `server/server.js`)
- Coding assessments → MongoDB: persists assessments
- Interview management → MongoDB: persists interviews
- HR subscriptions → MongoDB: updates user plan (evidence: `server/routes/paymentRoutes.js`)
