# taneja-garvit/devhire architecture

> Architecture diagram of the GitHub repository taneja-garvit/devhire, 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/taneja-garvit/devhire
- Repository: https://github.com/taneja-garvit/devhire

## Overview

DevHire is a role-based hiring platform connecting developers with recruiter-posted jobs and skills assessments. Developers sign up, browse jobs, take tests, and review results or history; recruiters post jobs and review candidates. The frontend routes into a gateway that exposes authentication, job, assessment, evaluation, score, and notification APIs. Assessment sessions select questions, while evaluation calculates scores and records results, with score and notification services available over gRPC. The README identifies separate services, but unsampled frontend requests and gateway-to-service routing limit evidence for several cross-service links.

Main entry points: [`Server/gateway-service/src/app.js`](https://github.com/taneja-garvit/devhire/blob/main/Server/gateway-service/src/app.js) (Gateway routes), [`project/src/App.tsx`](https://github.com/taneja-garvit/devhire/blob/main/project/src/App.tsx) (App routes), [`Server/evaluator-service/src/controllers/evaluatorController.js`](https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/controllers/evaluatorController.js) (Evaluation API), [`Server/assessment-service/src/controllers/testController.js`](https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/controllers/testController.js) (Assessment sessions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_ui_routes["App routes<br/>[App.tsx]"]
  node_auth_pages["Login and signup<br/>[Signup.tsx]"]
  node_developer_pages["Developer workflows"]
  node_job_pages["Job browsing<br/>[JobsList.tsx]"]
  node_recruiter_pages["Recruiter workflows"]
  node_test_page["Take assessment<br/>[TakeTest.tsx]"]
  node_results_page["Test results<br/>[TestResults.tsx]"]
end

subgraph group_gateway["API gateway"]
  node_gateway_app["Gateway routes<br/>[app.js]"]
end

subgraph group_identity["Identity"]
  node_auth_api["Authentication API<br/>[authController.js]"]
  node_user_store[("User records<br/>[user.js]")]
end

subgraph group_hiring["Jobs and assessments"]
  node_job_api["Job operations<br/>[jobController.js]"]
  node_job_store[("Job records<br/>[job.js]")]
  node_assessment_api["Assessment sessions<br/>[testController.js]"]
  node_question_store[("Question bank<br/>[Question.js]")]
  node_session_store[("Test sessions<br/>[TestSession.js]")]
end

subgraph group_outcomes["Evaluation and results"]
  node_evaluator_api["Evaluation API"]
  node_score_logic["Score calculation<br/>[calculateScore.js]"]
  node_result_store[("Evaluation results<br/>[Result.js]")]
  node_score_service["Score service<br/>[scoreController.js]"]
  node_score_store[("Score records<br/>[Score.js]")]
  node_notification_service["Notifications"]
  node_notification_store[("Notification records<br/>[Notification.js]")]
end

node_developer(("Developer"))
node_recruiter(("Recruiter"))

node_developer -.->|"uses"| node_ui_routes
node_recruiter -.->|"uses"| node_ui_routes
node_ui_routes -->|"routes to"| node_auth_pages
node_ui_routes -->|"routes to"| node_developer_pages
node_ui_routes -->|"routes to"| node_job_pages
node_ui_routes -->|"routes to"| node_recruiter_pages
node_ui_routes -->|"routes to"| node_test_page
node_ui_routes -->|"routes to"| node_results_page
node_auth_pages -.->|"requests"| node_gateway_app
node_developer_pages -.->|"requests"| node_gateway_app
node_job_pages -.->|"requests"| node_gateway_app
node_recruiter_pages -.->|"requests"| node_gateway_app
node_test_page -.->|"requests"| node_gateway_app
node_results_page -.->|"requests"| node_gateway_app
node_gateway_app -->|"mounts auth routes"| node_auth_api
node_gateway_app -->|"mounts job routes"| node_job_api
node_gateway_app -->|"mounts assessment routes"| node_assessment_api
node_gateway_app -->|"mounts evaluator routes"| node_evaluator_api
node_auth_api -->|"reads and writes"| node_user_store
node_job_api -->|"reads and writes"| node_job_store
node_assessment_api -->|"queries"| node_question_store
node_assessment_api -->|"creates and reads"| node_session_store
node_evaluator_api -->|"calculates"| node_score_logic
node_evaluator_api -->|"writes and reads"| node_result_store
node_evaluator_api -->|"sends score"| node_score_service
node_evaluator_api -->|"sends notification"| node_notification_service
node_score_service -->|"writes and reads"| node_score_store
node_notification_service -->|"writes and reads"| node_notification_store
node_gateway_app -.->|"routes to"| node_score_service
node_gateway_app -.->|"routes to"| node_notification_service

click node_ui_routes "https://github.com/taneja-garvit/devhire/blob/main/project/src/App.tsx"
click node_auth_pages "https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/Signup.tsx"
click node_developer_pages "https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/DeveloperDashboard.tsx"
click node_job_pages "https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/JobsList.tsx"
click node_recruiter_pages "https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/RecruiterDashboard.tsx"
click node_test_page "https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/TakeTest.tsx"
click node_results_page "https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/TestResults.tsx"
click node_gateway_app "https://github.com/taneja-garvit/devhire/blob/main/Server/gateway-service/src/app.js"
click node_auth_api "https://github.com/taneja-garvit/devhire/blob/main/Server/auth-service/src/controllers/authController.js"
click node_user_store "https://github.com/taneja-garvit/devhire/blob/main/Server/auth-service/src/models/user.js"
click node_job_api "https://github.com/taneja-garvit/devhire/blob/main/Server/job-service/src/controllers/jobController.js"
click node_job_store "https://github.com/taneja-garvit/devhire/blob/main/Server/job-service/src/models/job.js"
click node_assessment_api "https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/controllers/testController.js"
click node_question_store "https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/models/Question.js"
click node_session_store "https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/models/TestSession.js"
click node_evaluator_api "https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/controllers/evaluatorController.js"
click node_score_logic "https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/utils/calculateScore.js"
click node_result_store "https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/models/Result.js"
click node_score_service "https://github.com/taneja-garvit/devhire/blob/main/Server/score-service/src/controllers/scoreController.js"
click node_score_store "https://github.com/taneja-garvit/devhire/blob/main/Server/score-service/src/models/Score.js"
click node_notification_service "https://github.com/taneja-garvit/devhire/blob/main/Server/notification-service/src/controllers/notificationController.js"
click node_notification_store "https://github.com/taneja-garvit/devhire/blob/main/Server/notification-service/src/models/Notification.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_ui_routes,node_auth_pages,node_developer_pages,node_job_pages,node_recruiter_pages,node_test_page,node_results_page toneBlue
class node_gateway_app toneAmber
class node_auth_api,node_user_store toneMint
class node_job_api,node_job_store,node_assessment_api,node_question_store,node_session_store toneRose
class node_evaluator_api,node_score_logic,node_result_store,node_score_service,node_score_store,node_notification_service,node_notification_store,node_developer,node_recruiter toneIndigo
```

## Components

### Web client

- [App routes](https://github.com/taneja-garvit/devhire/blob/main/project/src/App.tsx): `project/src/App.tsx`
- [Login and signup](https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/Signup.tsx): `project/src/pages/Signup.tsx`
- [Developer workflows](https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/DeveloperDashboard.tsx): `project/src/pages/DeveloperDashboard.tsx`
- [Job browsing](https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/JobsList.tsx): `project/src/pages/JobsList.tsx`
- [Recruiter workflows](https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/RecruiterDashboard.tsx): `project/src/pages/RecruiterDashboard.tsx`
- [Take assessment](https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/TakeTest.tsx): `project/src/pages/TakeTest.tsx`
- [Test results](https://github.com/taneja-garvit/devhire/blob/main/project/src/pages/TestResults.tsx): `project/src/pages/TestResults.tsx`

### API gateway

- [Gateway routes](https://github.com/taneja-garvit/devhire/blob/main/Server/gateway-service/src/app.js): `Server/gateway-service/src/app.js`

### Identity

- [Authentication API](https://github.com/taneja-garvit/devhire/blob/main/Server/auth-service/src/controllers/authController.js): `Server/auth-service/src/controllers/authController.js`
- [User records](https://github.com/taneja-garvit/devhire/blob/main/Server/auth-service/src/models/user.js): `Server/auth-service/src/models/user.js`

### Jobs and assessments

- [Job operations](https://github.com/taneja-garvit/devhire/blob/main/Server/job-service/src/controllers/jobController.js): `Server/job-service/src/controllers/jobController.js`
- [Job records](https://github.com/taneja-garvit/devhire/blob/main/Server/job-service/src/models/job.js): `Server/job-service/src/models/job.js`
- [Assessment sessions](https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/controllers/testController.js): `Server/assessment-service/src/controllers/testController.js`
- [Question bank](https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/models/Question.js): `Server/assessment-service/src/models/Question.js`
- [Test sessions](https://github.com/taneja-garvit/devhire/blob/main/Server/assessment-service/src/models/TestSession.js): `Server/assessment-service/src/models/TestSession.js`

### Evaluation and results

- [Evaluation API](https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/controllers/evaluatorController.js): `Server/evaluator-service/src/controllers/evaluatorController.js`
- [Score calculation](https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/utils/calculateScore.js): `Server/evaluator-service/src/utils/calculateScore.js`
- [Evaluation results](https://github.com/taneja-garvit/devhire/blob/main/Server/evaluator-service/src/models/Result.js): `Server/evaluator-service/src/models/Result.js`
- [Score service](https://github.com/taneja-garvit/devhire/blob/main/Server/score-service/src/controllers/scoreController.js): `Server/score-service/src/controllers/scoreController.js`
- [Score records](https://github.com/taneja-garvit/devhire/blob/main/Server/score-service/src/models/Score.js): `Server/score-service/src/models/Score.js`
- [Notifications](https://github.com/taneja-garvit/devhire/blob/main/Server/notification-service/src/controllers/notificationController.js): `Server/notification-service/src/controllers/notificationController.js`
- [Notification records](https://github.com/taneja-garvit/devhire/blob/main/Server/notification-service/src/models/Notification.js): `Server/notification-service/src/models/Notification.js`

### Other components

- **Developer**
- **Recruiter**

## Connections

- Developer → App routes: uses
- Recruiter → App routes: uses
- App routes → Login and signup: routes to (evidence: `project/src/App.tsx`)
- App routes → Developer workflows: routes to (evidence: `project/src/App.tsx`)
- App routes → Job browsing: routes to (evidence: `project/src/App.tsx`)
- App routes → Recruiter workflows: routes to (evidence: `project/src/App.tsx`)
- App routes → Take assessment: routes to (evidence: `project/src/App.tsx`)
- App routes → Test results: routes to (evidence: `project/src/App.tsx`)
- Login and signup → Gateway routes: requests
- Developer workflows → Gateway routes: requests
- Job browsing → Gateway routes: requests
- Recruiter workflows → Gateway routes: requests
- Take assessment → Gateway routes: requests
- Test results → Gateway routes: requests
- Gateway routes → Authentication API: mounts auth routes (evidence: `Server/gateway-service/src/app.js`)
- Gateway routes → Job operations: mounts job routes (evidence: `Server/gateway-service/src/app.js`)
- Gateway routes → Assessment sessions: mounts assessment routes (evidence: `Server/gateway-service/src/app.js`)
- Gateway routes → Evaluation API: mounts evaluator routes (evidence: `Server/gateway-service/src/app.js`)
- Authentication API → User records: reads and writes (evidence: `Server/auth-service/src/controllers/authController.js`)
- Job operations → Job records: reads and writes (evidence: `Server/job-service/src/controllers/jobController.js`)
- Assessment sessions → Question bank: queries (evidence: `Server/assessment-service/src/controllers/testController.js`)
- Assessment sessions → Test sessions: creates and reads (evidence: `Server/assessment-service/src/controllers/testController.js`)
- Evaluation API → Score calculation: calculates (evidence: `Server/evaluator-service/src/controllers/evaluatorController.js`)
- Evaluation API → Evaluation results: writes and reads (evidence: `Server/evaluator-service/src/controllers/evaluatorController.js`)
- Evaluation API → Score service: sends score (evidence: `Server/evaluator-service/src/controllers/evaluatorController.js`)
- Evaluation API → Notifications: sends notification (evidence: `Server/evaluator-service/src/controllers/evaluatorController.js`)
- Score service → Score records: writes and reads (evidence: `Server/score-service/src/controllers/scoreController.js`)
- Notifications → Notification records: writes and reads (evidence: `Server/notification-service/src/controllers/notificationController.js`)
- Gateway routes → Score service: routes to
- Gateway routes → Notifications: routes to
