# techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine architecture

> Architecture diagram of the GitHub repository techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine
- Repository: https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine

## Overview

CampusHire manages campus recruitment from account access and academic profiles through drive eligibility screening, applications, shortlisting, and interview scheduling; authorized users then review analytics and reports. The React pages call the Express API, whose route handlers own domain operations and persist records in MongoDB. The graph preserves documented capabilities, but unsampled page and controller internals limit evidence for some links; those branches are shown at their documented API boundaries.

Main entry points: [`backend/server.js`](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/server.js) (API server and routing), [`frontend/src/App.jsx`](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/App.jsx) (React app routes), [`backend/controllers/applicationController.js`](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/applicationController.js) (Applications and shortlisting), [`backend/services/screeningService.js`](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/services/screeningService.js) (Eligibility screening)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_web["React app routes<br/>[App.jsx]"]
  node_authui["Session context<br/>[AuthContext.jsx]"]
  node_api["API client<br/>[api.js]"]
  node_authpages["Login and registration<br/>[Login.jsx]"]
  node_profileui["Student profile<br/>[StudentProfile.jsx]"]
  node_driveui["Drive management<br/>[Drives.jsx]"]
  node_screenui["Screening<br/>[Screening.jsx]"]
  node_interviewui["Interview scheduling"]
end

subgraph group_access["Identity and profiles"]
  node_auth["Authentication API<br/>[authController.js]"]
  node_student["Student profiles"]
end

subgraph group_recruitment["Recruitment workflow"]
  node_company["Company profiles"]
  node_drive["Placement drives<br/>[driveController.js]"]
  node_screening["Eligibility screening"]
  node_applications["Applications and shortlisting"]
  node_interviews["Interview rounds and slots"]
end

subgraph group_insights["Operations and insights"]
  node_admin["User administration<br/>[adminController.js]"]
  node_analytics["Recruitment analytics"]
  node_reports["Reports and exports"]
end

subgraph group_persistence["Data and integrations"]
  node_server["API server and routing<br/>[server.js]"]
  node_guard["Authentication and roles<br/>[authMiddleware.js]"]
  node_dbconn["Database connection<br/>[db.js]"]
  node_users[("Users<br/>[User.js]")]
  node_students[("Student records<br/>[Student.js]")]
  node_companies[("Company records<br/>[Company.js]")]
  node_drives[("Drive records<br/>[Drive.js]")]
  node_assessment[("Coding assessments<br/>[Assessment.js]")]
  node_application[("Application records<br/>[Application.js]")]
  node_batch[("Interview batches<br/>[InterviewBatch.js]")]
  node_slot[("Interview slots<br/>[InterviewSlot.js]")]
  node_email["Email notifications<br/>[emailService.js]"]
end

node_user(("User"))
node_mongodb[("MongoDB")]
node_smtp["SMTP service"]

node_user -->|"uses"| node_web
node_web -->|"provides session"| node_authui
node_web -->|"routes to"| node_authpages
node_web -->|"routes to"| node_profileui
node_web -->|"routes to"| node_driveui
node_web -->|"routes to"| node_screenui
node_web -->|"routes to"| node_interviewui
node_authui -->|"calls"| node_api
node_authpages -.->|"authenticates via"| node_authui
node_profileui -->|"requests data"| node_api
node_driveui -->|"requests data"| node_api
node_screenui -->|"requests screening"| node_api
node_interviewui -->|"requests scheduling"| node_api
node_api -.->|"sends API requests"| node_server
node_server -->|"connects"| node_dbconn
node_server -->|"routes auth"| node_auth
node_server -->|"routes students"| node_student
node_server -->|"routes companies"| node_company
node_server -->|"routes drives"| node_drive
node_server -->|"routes applications"| node_applications
node_server -->|"routes interviews"| node_interviews
node_server -->|"routes analytics"| node_analytics
node_server -->|"routes admin"| node_admin
node_server -->|"routes reports"| node_reports
node_auth -->|"reads and writes"| node_users
node_student -->|"reads"| node_users
node_student -->|"reads and writes"| node_students
node_company -->|"reads and writes"| node_companies
node_drive -->|"reads"| node_companies
node_drive -->|"reads and writes"| node_drives
node_applications -->|"reads"| node_drives
node_applications -->|"reads"| node_users
node_applications -->|"writes"| node_assessment
node_applications -->|"invokes"| node_screening
node_screening -->|"reads"| node_users
node_screening -->|"reads"| node_students
node_screening -->|"reads"| node_assessment
node_screening -->|"reads"| node_drives
node_screening -->|"updates eligibility"| node_application
node_applications -->|"reads and updates"| node_application
node_applications -->|"sends shortlist notice"| node_email
node_email -.->|"delivers via"| node_smtp
node_interviews -->|"reads"| node_drives
node_interviews -->|"reads and updates"| node_application
node_interviews -->|"creates and reads"| node_batch
node_interviews -->|"creates and updates"| node_slot
node_admin -.->|"manages"| node_users
node_analytics -.->|"summarizes"| node_application

click node_web "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/App.jsx"
click node_authui "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/context/AuthContext.jsx"
click node_api "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/services/api.js"
click node_authpages "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/Login.jsx"
click node_profileui "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/StudentProfile.jsx"
click node_driveui "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/Drives.jsx"
click node_screenui "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/Screening.jsx"
click node_interviewui "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/InterviewScheduling.jsx"
click node_auth "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/authController.js"
click node_student "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/studentController.js"
click node_company "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/companyController.js"
click node_drive "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/driveController.js"
click node_screening "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/services/screeningService.js"
click node_applications "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/applicationController.js"
click node_interviews "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/interviewController.js"
click node_admin "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/adminController.js"
click node_analytics "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/analyticsController.js"
click node_reports "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/reportController.js"
click node_server "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/server.js"
click node_guard "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/middleware/authMiddleware.js"
click node_dbconn "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/config/db.js"
click node_users "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/User.js"
click node_students "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Student.js"
click node_companies "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Company.js"
click node_drives "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Drive.js"
click node_assessment "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Assessment.js"
click node_application "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Application.js"
click node_batch "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/InterviewBatch.js"
click node_slot "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/InterviewSlot.js"
click node_email "https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/services/emailService.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_web,node_authui,node_api,node_authpages,node_profileui,node_driveui,node_screenui,node_interviewui,node_user toneBlue
class node_auth,node_student,node_mongodb toneAmber
class node_company,node_drive,node_screening,node_applications,node_interviews toneMint
class node_admin,node_analytics,node_reports toneRose
class node_server,node_guard,node_dbconn,node_users,node_students,node_companies,node_drives,node_assessment,node_application,node_batch,node_slot,node_email,node_smtp toneIndigo
```

## Components

### Web application

- [React app routes](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Session context](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [API client](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Login and registration](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/Login.jsx): `frontend/src/pages/Login.jsx`
- [Student profile](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/StudentProfile.jsx): `frontend/src/pages/StudentProfile.jsx`
- [Drive management](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/Drives.jsx): `frontend/src/pages/Drives.jsx`
- [Screening](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/Screening.jsx): `frontend/src/pages/Screening.jsx`
- [Interview scheduling](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/frontend/src/pages/InterviewScheduling.jsx): `frontend/src/pages/InterviewScheduling.jsx`

### Identity and profiles

- [Authentication API](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/authController.js): `backend/controllers/authController.js`
- [Student profiles](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/studentController.js): `backend/controllers/studentController.js`

### Recruitment workflow

- [Company profiles](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/companyController.js): `backend/controllers/companyController.js`
- [Placement drives](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/driveController.js): `backend/controllers/driveController.js`
- [Eligibility screening](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/services/screeningService.js): `backend/services/screeningService.js`
- [Applications and shortlisting](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/applicationController.js): `backend/controllers/applicationController.js`
- [Interview rounds and slots](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/interviewController.js): `backend/controllers/interviewController.js`

### Operations and insights

- [User administration](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/adminController.js): `backend/controllers/adminController.js`
- [Recruitment analytics](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/analyticsController.js): `backend/controllers/analyticsController.js`
- [Reports and exports](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/controllers/reportController.js): `backend/controllers/reportController.js`

### Data and integrations

- [API server and routing](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/server.js): `backend/server.js`
- [Authentication and roles](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/middleware/authMiddleware.js): `backend/middleware/authMiddleware.js`
- [Database connection](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/config/db.js): `backend/config/db.js`
- [Users](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/User.js): `backend/models/User.js`
- [Student records](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Student.js): `backend/models/Student.js`
- [Company records](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Company.js): `backend/models/Company.js`
- [Drive records](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Drive.js): `backend/models/Drive.js`
- [Coding assessments](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Assessment.js): `backend/models/Assessment.js`
- [Application records](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/Application.js): `backend/models/Application.js`
- [Interview batches](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/InterviewBatch.js): `backend/models/InterviewBatch.js`
- [Interview slots](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/models/InterviewSlot.js): `backend/models/InterviewSlot.js`
- [Email notifications](https://github.com/techsign-dev/campushire-enterprise-placement-drive-screening-shortlisting-engine/blob/main/backend/services/emailService.js): `backend/services/emailService.js`

### Other components

- **User**
- **MongoDB**
- **SMTP service**

## Connections

- User → React app routes: uses (evidence: `README.md`)
- React app routes → Session context: provides session (evidence: `frontend/src/App.jsx`)
- React app routes → Login and registration: routes to (evidence: `frontend/src/App.jsx`)
- React app routes → Student profile: routes to (evidence: `frontend/src/App.jsx`)
- React app routes → Drive management: routes to (evidence: `frontend/src/App.jsx`)
- React app routes → Screening: routes to (evidence: `frontend/src/App.jsx`)
- React app routes → Interview scheduling: routes to (evidence: `frontend/src/App.jsx`)
- Session context → API client: calls (evidence: `frontend/src/context/AuthContext.jsx`)
- Login and registration → Session context: authenticates via
- Student profile → API client: requests data (evidence: `frontend/src/pages/StudentProfile.jsx`)
- Drive management → API client: requests data (evidence: `frontend/src/pages/Drives.jsx`)
- Screening → API client: requests screening (evidence: `frontend/src/pages/Screening.jsx`)
- Interview scheduling → API client: requests scheduling (evidence: `frontend/src/pages/InterviewScheduling.jsx`)
- API client → API server and routing: sends API requests
- API server and routing → Database connection: connects (evidence: `backend/server.js`)
- API server and routing → Authentication API: routes auth (evidence: `backend/server.js`)
- API server and routing → Student profiles: routes students (evidence: `backend/server.js`)
- API server and routing → Company profiles: routes companies (evidence: `backend/server.js`)
- API server and routing → Placement drives: routes drives (evidence: `backend/server.js`)
- API server and routing → Applications and shortlisting: routes applications (evidence: `backend/server.js`)
- API server and routing → Interview rounds and slots: routes interviews (evidence: `backend/server.js`)
- API server and routing → Recruitment analytics: routes analytics (evidence: `backend/server.js`)
- API server and routing → User administration: routes admin (evidence: `backend/server.js`)
- API server and routing → Reports and exports: routes reports (evidence: `backend/server.js`)
- Authentication API → Users: reads and writes (evidence: `backend/controllers/authController.js`)
- Student profiles → Users: reads (evidence: `backend/controllers/studentController.js`)
- Student profiles → Student records: reads and writes (evidence: `backend/controllers/studentController.js`)
- Company profiles → Company records: reads and writes (evidence: `backend/controllers/companyController.js`)
- Placement drives → Company records: reads (evidence: `backend/controllers/driveController.js`)
- Placement drives → Drive records: reads and writes (evidence: `backend/controllers/driveController.js`)
- Applications and shortlisting → Drive records: reads (evidence: `backend/controllers/applicationController.js`)
- Applications and shortlisting → Users: reads (evidence: `backend/controllers/applicationController.js`)
- Applications and shortlisting → Coding assessments: writes (evidence: `backend/controllers/applicationController.js`)
- Applications and shortlisting → Eligibility screening: invokes (evidence: `backend/controllers/applicationController.js`)
- Eligibility screening → Users: reads (evidence: `backend/services/screeningService.js`)
- Eligibility screening → Student records: reads (evidence: `backend/services/screeningService.js`)
- Eligibility screening → Coding assessments: reads (evidence: `backend/services/screeningService.js`)
- Eligibility screening → Drive records: reads (evidence: `backend/services/screeningService.js`)
- Eligibility screening → Application records: updates eligibility (evidence: `backend/services/screeningService.js`)
- Applications and shortlisting → Application records: reads and updates (evidence: `backend/controllers/applicationController.js`)
- Applications and shortlisting → Email notifications: sends shortlist notice (evidence: `backend/controllers/applicationController.js`)
- Email notifications → SMTP service: delivers via
- Interview rounds and slots → Drive records: reads (evidence: `backend/controllers/interviewController.js`)
- Interview rounds and slots → Application records: reads and updates (evidence: `backend/controllers/interviewController.js`)
- Interview rounds and slots → Interview batches: creates and reads (evidence: `backend/controllers/interviewController.js`)
- Interview rounds and slots → Interview slots: creates and updates (evidence: `backend/controllers/interviewController.js`)
- User administration → Users: manages
- Recruitment analytics → Application records: summarizes
