# gurjyot-gurz/talentflow_project architecture

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

- Interactive diagram: https://gitdiagram.com/gurjyot-gurz/talentflow_project
- Repository: https://github.com/gurjyot-gurz/talentflow_project

## Overview

TalentFlow is a recruitment management platform for recruiters: the browser interface sends requests to the REST API, which authenticates users and manages candidates, jobs, applications, interviews, and resumes. Structured records use MySQL; resume objects use S3. The README also documents an asynchronous resume-processing branch and cloud operations capabilities. Those branches are included at the documented level; excerpts do not establish their complete runtime wiring.

Main entry points: [`backend/src/app.js`](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/app.js) (API application), [`backend/src/config/db.js`](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/config/db.js) (MySQL connection pool), [`backend/src/routes/candidateRoutes.js`](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/candidateRoutes.js) (Candidate routes), [`backend/src/middleware/authMiddleware.js`](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/middleware/authMiddleware.js) (Token verification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Recruiter experience"]
  node_frontend["Web interface<br/>[script.js]"]
end

subgraph group_api["REST API"]
  node_api_entry["API application<br/>[app.js]"]
  node_auth_routes["Auth routes<br/>[authRoutes.js]"]
  node_auth_controller["Registration and login<br/>[authController.js]"]
  node_auth_middleware["Token verification<br/>[authMiddleware.js]"]
  node_candidate_routes["Candidate routes<br/>[candidateRoutes.js]"]
  node_job_routes["Job routes<br/>[jobRoutes.js]"]
  node_application_routes["Application routes"]
  node_interview_routes["Interview routes<br/>[interviewRoutes.js]"]
end

subgraph group_records["Recruitment records"]
  node_candidate_controller["Candidate management"]
  node_job_controller["Job management<br/>[jobController.js]"]
  node_application_controller["Application tracking"]
  node_interview_controller["Interview management"]
  node_mysql_pool["MySQL connection pool<br/>[db.js]"]
end

subgraph group_resumes["Resume handling"]
  node_upload_middleware["Resume upload middleware"]
  node_s3_service["Resume object service<br/>[s3Service.js]"]
  node_s3_config["S3 client<br/>[s3.js]"]
end

subgraph group_cloud["Cloud services"]
  node_mysql[("RDS MySQL")]
  node_s3[("S3 resume storage")]
  node_api_gateway["API Gateway"]
  node_lambda_api["Resume API Lambda<br/>[index.js]"]
  node_processor["Resume processor<br/>[resumeProcessor.js]"]
  node_queue["SQS work queue"]
  node_ops["Cloud operations"]
end

node_recruiter(("Recruiter"))

node_recruiter -->|"uses"| node_frontend
node_frontend -->|"requests"| node_api_entry
node_api_entry -->|"routes auth"| node_auth_routes
node_api_entry -->|"routes candidates"| node_candidate_routes
node_api_entry -->|"routes jobs"| node_job_routes
node_api_entry -->|"routes applications"| node_application_routes
node_api_entry -->|"routes interviews"| node_interview_routes
node_auth_routes -->|"dispatches"| node_auth_controller
node_candidate_routes -->|"dispatches"| node_candidate_controller
node_candidate_routes -->|"verifies token"| node_auth_middleware
node_job_routes -->|"dispatches"| node_job_controller
node_job_routes -->|"verifies token"| node_auth_middleware
node_application_routes -->|"dispatches"| node_application_controller
node_application_routes -->|"verifies token"| node_auth_middleware
node_interview_routes -->|"dispatches"| node_interview_controller
node_interview_routes -->|"verifies token"| node_auth_middleware
node_auth_controller -->|"reads and writes"| node_mysql_pool
node_candidate_controller -->|"reads and writes"| node_mysql_pool
node_job_controller -->|"reads and writes"| node_mysql_pool
node_application_controller -->|"reads and writes"| node_mysql_pool
node_interview_controller -->|"reads and writes"| node_mysql_pool
node_mysql_pool -.->|"connects to"| node_mysql
node_candidate_routes -->|"accepts file"| node_upload_middleware
node_candidate_controller -->|"uploads and signs"| node_s3_service
node_s3_service -->|"uses client"| node_s3_config
node_s3_config -.->|"connects to"| node_s3
node_api_gateway -.->|"invokes"| node_lambda_api
node_lambda_api -.->|"queues work"| node_queue
node_processor -.->|"processes messages"| node_queue
node_ops -.->|"hosts and scales"| node_api_entry

click node_frontend "https://github.com/gurjyot-gurz/talentflow_project/blob/main/frontend/script.js"
click node_api_entry "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/app.js"
click node_auth_routes "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/authRoutes.js"
click node_auth_controller "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/authController.js"
click node_auth_middleware "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/middleware/authMiddleware.js"
click node_candidate_routes "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/candidateRoutes.js"
click node_candidate_controller "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/candidateController.js"
click node_job_routes "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/jobRoutes.js"
click node_job_controller "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/jobController.js"
click node_application_routes "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/applicationRoutes.js"
click node_application_controller "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/applicationController.js"
click node_interview_routes "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/interviewRoutes.js"
click node_interview_controller "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/interviewController.js"
click node_mysql_pool "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/config/db.js"
click node_upload_middleware "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/middleware/uploadMiddleware.js"
click node_s3_service "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/services/s3Service.js"
click node_s3_config "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/config/s3.js"
click node_lambda_api "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/lambda-api/index.js"
click node_processor "https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/lambda/resumeProcessor.js"
click node_ops "https://github.com/gurjyot-gurz/talentflow_project/tree/main/backend/terraform/environments/dev"

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_frontend toneBlue
class node_api_entry,node_auth_routes,node_auth_controller,node_auth_middleware,node_candidate_routes,node_job_routes,node_application_routes,node_interview_routes toneAmber
class node_candidate_controller,node_job_controller,node_application_controller,node_interview_controller,node_mysql_pool toneMint
class node_upload_middleware,node_s3_service,node_s3_config toneRose
class node_mysql,node_s3,node_api_gateway,node_lambda_api,node_processor,node_queue,node_ops,node_recruiter toneIndigo
```

## Components

### Recruiter experience

- [Web interface](https://github.com/gurjyot-gurz/talentflow_project/blob/main/frontend/script.js): `frontend/script.js`

### REST API

- [API application](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/app.js): `backend/src/app.js`
- [Auth routes](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/authRoutes.js): `backend/src/routes/authRoutes.js`
- [Registration and login](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/authController.js): `backend/src/controllers/authController.js`
- [Token verification](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/middleware/authMiddleware.js): `backend/src/middleware/authMiddleware.js`
- [Candidate routes](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/candidateRoutes.js): `backend/src/routes/candidateRoutes.js`
- [Job routes](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/jobRoutes.js): `backend/src/routes/jobRoutes.js`
- [Application routes](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/applicationRoutes.js): `backend/src/routes/applicationRoutes.js`
- [Interview routes](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/routes/interviewRoutes.js): `backend/src/routes/interviewRoutes.js`

### Recruitment records

- [Candidate management](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/candidateController.js): `backend/src/controllers/candidateController.js`
- [Job management](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/jobController.js): `backend/src/controllers/jobController.js`
- [Application tracking](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/applicationController.js): `backend/src/controllers/applicationController.js`
- [Interview management](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/controllers/interviewController.js): `backend/src/controllers/interviewController.js`
- [MySQL connection pool](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/config/db.js): `backend/src/config/db.js`

### Resume handling

- [Resume upload middleware](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/middleware/uploadMiddleware.js): `backend/src/middleware/uploadMiddleware.js`
- [Resume object service](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/services/s3Service.js): `backend/src/services/s3Service.js`
- [S3 client](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/src/config/s3.js): `backend/src/config/s3.js`

### Cloud services

- **RDS MySQL**
- **S3 resume storage**
- **API Gateway**
- [Resume API Lambda](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/lambda-api/index.js): `backend/lambda-api/index.js`
- [Resume processor](https://github.com/gurjyot-gurz/talentflow_project/blob/main/backend/lambda/resumeProcessor.js): `backend/lambda/resumeProcessor.js`
- **SQS work queue**
- [Cloud operations](https://github.com/gurjyot-gurz/talentflow_project/tree/main/backend/terraform/environments/dev): `backend/terraform/environments/dev`

### Other components

- **Recruiter**

## Connections

- Recruiter → Web interface: uses (evidence: `README.md`)
- Web interface → API application: requests (evidence: `README.md`)
- API application → Auth routes: routes auth (evidence: `backend/src/app.js`)
- API application → Candidate routes: routes candidates (evidence: `backend/src/app.js`)
- API application → Job routes: routes jobs (evidence: `backend/src/app.js`)
- API application → Application routes: routes applications (evidence: `backend/src/app.js`)
- API application → Interview routes: routes interviews (evidence: `backend/src/app.js`)
- Auth routes → Registration and login: dispatches (evidence: `backend/src/routes/authRoutes.js`)
- Candidate routes → Candidate management: dispatches (evidence: `backend/src/routes/candidateRoutes.js`)
- Candidate routes → Token verification: verifies token (evidence: `backend/src/routes/candidateRoutes.js`)
- Job routes → Job management: dispatches (evidence: `backend/src/routes/jobRoutes.js`)
- Job routes → Token verification: verifies token (evidence: `backend/src/routes/jobRoutes.js`)
- Application routes → Application tracking: dispatches (evidence: `backend/src/routes/applicationRoutes.js`)
- Application routes → Token verification: verifies token (evidence: `backend/src/routes/applicationRoutes.js`)
- Interview routes → Interview management: dispatches (evidence: `backend/src/routes/interviewRoutes.js`)
- Interview routes → Token verification: verifies token (evidence: `backend/src/routes/interviewRoutes.js`)
- Registration and login → MySQL connection pool: reads and writes (evidence: `backend/src/controllers/authController.js`)
- Candidate management → MySQL connection pool: reads and writes (evidence: `backend/src/controllers/candidateController.js`)
- Job management → MySQL connection pool: reads and writes (evidence: `backend/src/controllers/jobController.js`)
- Application tracking → MySQL connection pool: reads and writes (evidence: `backend/src/controllers/applicationController.js`)
- Interview management → MySQL connection pool: reads and writes (evidence: `backend/src/controllers/interviewController.js`)
- MySQL connection pool → RDS MySQL: connects to (evidence: `README.md`)
- Candidate routes → Resume upload middleware: accepts file (evidence: `backend/src/routes/candidateRoutes.js`)
- Candidate management → Resume object service: uploads and signs (evidence: `backend/src/controllers/candidateController.js`)
- Resume object service → S3 client: uses client (evidence: `backend/src/services/s3Service.js`)
- S3 client → S3 resume storage: connects to (evidence: `README.md`)
- API Gateway → Resume API Lambda: invokes (evidence: `README.md`)
- Resume API Lambda → SQS work queue: queues work (evidence: `README.md`)
- Resume processor → SQS work queue: processes messages (evidence: `README.md`)
- Cloud operations → API application: hosts and scales (evidence: `README.md`)
