# ankit-kr-maurya-82/college-training-placement-management-system architecture

> Architecture diagram of the GitHub repository ankit-kr-maurya-82/college-training-placement-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ankit-kr-maurya-82/college-training-placement-management-system
- Repository: https://github.com/ankit-kr-maurya-82/college-training-placement-management-system

## Overview

This is a college training and placement management system for public visitors, students, recruiters, and TPO/admin staff. Its central workflow is recruiters and administrators publishing placement drives, students discovering drives and applying, and recruiters or staff reviewing applications and coordinating interviews. The application also supports account verification, student profiles, recommendations, skill readiness, announcements, notifications, and administrative oversight. The graph combines documented capabilities with indexed source references; unsampled subsystem internals are represented at their existing directory paths.

Main entry points: [`backend/src/app.js`](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/app.js) (Express application), [`backend/src/controllers/application.controller.js`](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/application.controller.js) (Applications and eligibility), [`fronted/src/routes/AppRoutes.jsx`](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/routes/AppRoutes.jsx) (Role-based routes), [`backend/src/controllers/admin.controller.js`](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/admin.controller.js) (Placement oversight)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React application"]
  node_routes_ui["Role-based routes<br/>[AppRoutes.jsx]"]
  node_auth_ui["Sign-in and registration"]
  node_auth_context["Session context<br/>[auth.context.jsx]"]
  node_api_client["API client<br/>[api.js]"]
  node_student_ui["Student workspace"]
  node_recruiter_ui["Recruiter workspace"]
  node_admin_ui["Admin workspace"]
end

subgraph group_api["Backend API"]
  node_app_server["Express application<br/>[app.js]"]
  node_auth_routes["Authentication routes<br/>[auth.routes.js]"]
  node_application_routes["Application routes"]
  node_company_routes["Company routes<br/>[comapany.routes.js]"]
  node_drive_routes["Drive routes<br/>[drive.routes.js]"]
  node_student_routes["Student routes<br/>[student.routes.js]"]
  node_admin_routes["Admin routes<br/>[admin.routes.js]"]
end

subgraph group_placement["Placement operations"]
  node_drive_controller["Drive management"]
  node_application_controller["Applications and eligibility"]
  node_interview_controller["Interview coordination"]
  node_recommendations["Recommendations and readiness"]
  node_admin_controller["Placement oversight"]
  node_announcements["Announcements"]
end

subgraph group_support["Accounts and services"]
  node_auth_controller["Account handlers<br/>[auth.controller.js]"]
  node_identity_services["Identity and verification"]
  node_auth_middleware["Token and role checks<br/>[auth.middleware.js]"]
  node_notifications["Notifications and email"]
end

subgraph group_persistence["MongoDB records"]
  node_student_model[("Student records<br/>[student.model.js]")]
  node_company_model[("Company records<br/>[company.model.js]")]
  node_drive_model[("Drive records<br/>[drive.model.js]")]
  node_application_model[("Application records")]
  node_interview_model[("Interview records<br/>[interview.model.js]")]
end

node_visitors(("Public and users"))

node_visitors -->|"navigate"| node_routes_ui
node_routes_ui -->|"routes to"| node_auth_ui
node_routes_ui -->|"routes to"| node_student_ui
node_routes_ui -->|"routes to"| node_recruiter_ui
node_routes_ui -->|"routes to"| node_admin_ui
node_auth_ui -->|"uses session"| node_auth_context
node_auth_context -->|"calls"| node_api_client
node_student_ui -->|"requests data"| node_api_client
node_recruiter_ui -->|"requests data"| node_api_client
node_admin_ui -->|"requests data"| node_api_client
node_api_client -->|"HTTP requests"| node_app_server
node_app_server -->|"mounts routes"| node_auth_routes
node_app_server -->|"mounts routes"| node_application_routes
node_app_server -->|"mounts routes"| node_company_routes
node_app_server -->|"mounts routes"| node_drive_routes
node_app_server -->|"mounts routes"| node_student_routes
node_app_server -->|"mounts routes"| node_admin_routes
node_auth_routes -.->|"dispatches"| node_auth_controller
node_auth_controller -.->|"verifies identity"| node_identity_services
node_identity_services -.->|"uses account data"| node_student_model
node_application_routes -->|"dispatches"| node_application_controller
node_application_routes -->|"checks access"| node_auth_middleware
node_company_routes -->|"dispatches"| node_drive_controller
node_drive_routes -->|"dispatches"| node_drive_controller
node_student_routes -->|"dispatches"| node_recommendations
node_student_routes -->|"dispatches"| node_announcements
node_admin_routes -->|"dispatches"| node_admin_controller
node_admin_routes -->|"dispatches"| node_announcements
node_admin_routes -->|"dispatches"| node_interview_controller
node_application_controller -->|"reads and writes"| node_application_model
node_application_controller -->|"checks student"| node_student_model
node_application_controller -->|"checks company"| node_company_model
node_application_controller -->|"checks drive"| node_drive_model
node_application_controller -->|"checks eligibility"| node_recommendations
node_drive_controller -->|"reads company"| node_company_model
node_drive_controller -->|"manages drives"| node_drive_model
node_drive_controller -.->|"queues notices"| node_notifications
node_interview_controller -->|"checks application"| node_application_model
node_interview_controller -.->|"manages interviews"| node_interview_model
node_interview_controller -->|"sends interview email"| node_notifications
node_admin_controller -->|"oversees applications"| node_application_model
node_admin_controller -->|"oversees companies"| node_company_model
node_admin_controller -->|"oversees drives"| node_drive_model
node_admin_controller -->|"oversees students"| node_student_model

click node_routes_ui "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/routes/AppRoutes.jsx"
click node_auth_ui "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/auth"
click node_auth_context "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/context/auth.context.jsx"
click node_api_client "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/services/api.js"
click node_student_ui "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/student"
click node_recruiter_ui "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/recruiter"
click node_admin_ui "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/admin"
click node_app_server "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/app.js"
click node_auth_routes "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/auth.routes.js"
click node_application_routes "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/application.routes.js"
click node_company_routes "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/comapany.routes.js"
click node_drive_routes "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/drive.routes.js"
click node_student_routes "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/student.routes.js"
click node_admin_routes "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/admin.routes.js"
click node_auth_controller "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/auth.controller.js"
click node_identity_services "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/backend/src/services"
click node_auth_middleware "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/middlewares/auth.middleware.js"
click node_drive_controller "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/drive.controller.js"
click node_application_controller "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/application.controller.js"
click node_interview_controller "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/interview.controller.js"
click node_recommendations "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/backend/src/services"
click node_admin_controller "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/admin.controller.js"
click node_announcements "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/announcement.controller.js"
click node_notifications "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/backend/src/services"
click node_student_model "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/student.model.js"
click node_company_model "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/company.model.js"
click node_drive_model "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/drive.model.js"
click node_application_model "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/application.model.js"
click node_interview_model "https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/interview.model.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_routes_ui,node_auth_ui,node_auth_context,node_api_client,node_student_ui,node_recruiter_ui,node_admin_ui,node_visitors toneBlue
class node_app_server,node_auth_routes,node_application_routes,node_company_routes,node_drive_routes,node_student_routes,node_admin_routes toneAmber
class node_drive_controller,node_application_controller,node_interview_controller,node_recommendations,node_admin_controller,node_announcements toneMint
class node_auth_controller,node_identity_services,node_auth_middleware,node_notifications toneRose
class node_student_model,node_company_model,node_drive_model,node_application_model,node_interview_model toneIndigo
```

## Components

### React application

- [Role-based routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/routes/AppRoutes.jsx): `fronted/src/routes/AppRoutes.jsx`
- [Sign-in and registration](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/auth): `fronted/src/pages/auth`
- [Session context](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/context/auth.context.jsx): `fronted/src/context/auth.context.jsx`
- [API client](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/fronted/src/services/api.js): `fronted/src/services/api.js`
- [Student workspace](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/student): `fronted/src/pages/student`
- [Recruiter workspace](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/recruiter): `fronted/src/pages/recruiter`
- [Admin workspace](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/fronted/src/pages/admin): `fronted/src/pages/admin`

### Backend API

- [Express application](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/app.js): `backend/src/app.js`
- [Authentication routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/auth.routes.js): `backend/src/routes/auth.routes.js`
- [Application routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/application.routes.js): `backend/src/routes/application.routes.js`
- [Company routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/comapany.routes.js): `backend/src/routes/comapany.routes.js`
- [Drive routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/drive.routes.js): `backend/src/routes/drive.routes.js`
- [Student routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/student.routes.js): `backend/src/routes/student.routes.js`
- [Admin routes](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/routes/admin.routes.js): `backend/src/routes/admin.routes.js`

### Placement operations

- [Drive management](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/drive.controller.js): `backend/src/controllers/drive.controller.js`
- [Applications and eligibility](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/application.controller.js): `backend/src/controllers/application.controller.js`
- [Interview coordination](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/interview.controller.js): `backend/src/controllers/interview.controller.js`
- [Recommendations and readiness](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/backend/src/services): `backend/src/services`
- [Placement oversight](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/admin.controller.js): `backend/src/controllers/admin.controller.js`
- [Announcements](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/announcement.controller.js): `backend/src/controllers/announcement.controller.js`

### Accounts and services

- [Account handlers](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/controllers/auth.controller.js): `backend/src/controllers/auth.controller.js`
- [Identity and verification](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/backend/src/services): `backend/src/services`
- [Token and role checks](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/middlewares/auth.middleware.js): `backend/src/middlewares/auth.middleware.js`
- [Notifications and email](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/tree/main/backend/src/services): `backend/src/services`

### MongoDB records

- [Student records](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/student.model.js): `backend/src/models/student.model.js`
- [Company records](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/company.model.js): `backend/src/models/company.model.js`
- [Drive records](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/drive.model.js): `backend/src/models/drive.model.js`
- [Application records](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/application.model.js): `backend/src/models/application.model.js`
- [Interview records](https://github.com/ankit-kr-maurya-82/college-training-placement-management-system/blob/main/backend/src/models/interview.model.js): `backend/src/models/interview.model.js`

### Other components

- **Public and users**

## Connections

- Public and users → Role-based routes: navigate (evidence: `fronted/src/routes/AppRoutes.jsx`)
- Role-based routes → Sign-in and registration: routes to (evidence: `fronted/src/routes/AppRoutes.jsx`)
- Role-based routes → Student workspace: routes to (evidence: `fronted/src/routes/AppRoutes.jsx`)
- Role-based routes → Recruiter workspace: routes to (evidence: `fronted/src/routes/AppRoutes.jsx`)
- Role-based routes → Admin workspace: routes to (evidence: `fronted/src/routes/AppRoutes.jsx`)
- Sign-in and registration → Session context: uses session (evidence: `fronted/src/context/auth.context.jsx`)
- Session context → API client: calls (evidence: `fronted/src/context/auth.context.jsx`)
- Student workspace → API client: requests data (evidence: `fronted/src/pages/student/Applications.jsx`)
- Recruiter workspace → API client: requests data (evidence: `fronted/src/pages/recruiter/Applications.jsx`)
- Admin workspace → API client: requests data (evidence: `fronted/src/pages/admin/Dashboard.jsx`)
- API client → Express application: HTTP requests
- Express application → Authentication routes: mounts routes (evidence: `backend/src/app.js`)
- Express application → Application routes: mounts routes (evidence: `backend/src/app.js`)
- Express application → Company routes: mounts routes (evidence: `backend/src/app.js`)
- Express application → Drive routes: mounts routes (evidence: `backend/src/app.js`)
- Express application → Student routes: mounts routes (evidence: `backend/src/app.js`)
- Express application → Admin routes: mounts routes (evidence: `backend/src/app.js`)
- Authentication routes → Account handlers: dispatches
- Account handlers → Identity and verification: verifies identity
- Identity and verification → Student records: uses account data (evidence: `backend/src/services/drive-notification-worker.js`)
- Application routes → Applications and eligibility: dispatches (evidence: `backend/src/routes/application.routes.js`)
- Application routes → Token and role checks: checks access (evidence: `backend/src/routes/application.routes.js`)
- Company routes → Drive management: dispatches (evidence: `backend/src/routes/comapany.routes.js`)
- Drive routes → Drive management: dispatches (evidence: `backend/src/routes/drive.routes.js`)
- Student routes → Recommendations and readiness: dispatches (evidence: `backend/src/routes/student.routes.js`)
- Student routes → Announcements: dispatches (evidence: `backend/src/routes/student.routes.js`)
- Admin routes → Placement oversight: dispatches (evidence: `backend/src/routes/admin.routes.js`)
- Admin routes → Announcements: dispatches (evidence: `backend/src/routes/admin.routes.js`)
- Admin routes → Interview coordination: dispatches (evidence: `backend/src/routes/admin.routes.js`)
- Applications and eligibility → Application records: reads and writes (evidence: `backend/src/controllers/application.controller.js`)
- Applications and eligibility → Student records: checks student (evidence: `backend/src/controllers/application.controller.js`)
- Applications and eligibility → Company records: checks company (evidence: `backend/src/controllers/application.controller.js`)
- Applications and eligibility → Drive records: checks drive (evidence: `backend/src/controllers/application.controller.js`)
- Applications and eligibility → Recommendations and readiness: checks eligibility (evidence: `backend/src/controllers/application.controller.js`)
- Drive management → Company records: reads company (evidence: `backend/src/controllers/drive.controller.js`)
- Drive management → Drive records: manages drives (evidence: `backend/src/controllers/drive.controller.js`)
- Drive management → Notifications and email: queues notices
- Interview coordination → Application records: checks application (evidence: `backend/src/controllers/interview.controller.js`)
- Interview coordination → Interview records: manages interviews (evidence: `backend/src/controllers/interview.controller.js`)
- Interview coordination → Notifications and email: sends interview email (evidence: `backend/src/controllers/interview.controller.js`)
- Placement oversight → Application records: oversees applications (evidence: `backend/src/controllers/admin.controller.js`)
- Placement oversight → Company records: oversees companies (evidence: `backend/src/controllers/admin.controller.js`)
- Placement oversight → Drive records: oversees drives (evidence: `backend/src/controllers/admin.controller.js`)
- Placement oversight → Student records: oversees students (evidence: `backend/src/controllers/admin.controller.js`)
