# i-aravind/smart-hire architecture

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

- Interactive diagram: https://gitdiagram.com/i-aravind/smart-hire
- Repository: https://github.com/i-aravind/smart-hire

## Overview

SmartHire is an Angular recruiting and assessment application. Candidates authenticate or register, view assigned assessments, and complete and submit questions; recruiters authenticate, review candidates, and schedule or revoke assessments. The component-to-service links are supported by the SOURCE INDEX, while service-to-backend links are visible in sampled HTTP code. The README describes Angular setup rather than product capabilities, and backend implementation is not included in the tree.

Main entry points: [`src/candidate-login/candidate-login.component.ts`](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login.component.ts) (Sign in), [`src/assessment/assessment.service.ts`](https://github.com/i-aravind/smart-hire/blob/main/src/assessment/assessment.service.ts) (Question and submission API), [`src/candidate-home/candidate-home.component.ts`](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/candidate-home.component.ts) (Candidate dashboard), [`src/recruiter-home/recruiter-home.component.ts`](https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/recruiter-home.component.ts) (Recruiter dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity"]
  node_routing["Application routes"]
  node_login["Sign in"]
  node_login_api["Authentication API client"]
  node_shared["Shared session value<br/>[shared.service.ts]"]
  node_registration["Candidate registration"]
  node_registration_api["Registration API client"]
end

subgraph group_candidate["Candidate workflow"]
  node_candidate_home["Candidate dashboard"]
  node_candidate_api["Assessment lookup"]
  node_assessment_data["Assigned assessments<br/>[IAssessment.ts]"]
end

subgraph group_recruiter["Recruiter workflow"]
  node_recruiter_home["Recruiter dashboard"]
  node_recruiter_api["Candidate lookup"]
  node_candidate_view["Candidate review data<br/>[IcandidateView.ts]"]
  node_candidate_filter["Candidate filter<br/>[candidate-pipe.ts]"]
  node_scheduling["Schedule or revoke"]
  node_scheduling_api["Scheduling API client"]
end

subgraph group_assessment["Assessment workflow"]
  node_assessment_view["Assessment taking"]
  node_assessment_api["Question and submission API"]
  node_question_data["Questions and submission<br/>[IQuestion.ts]"]
end

node_user(("Candidate or recruiter"))
node_backend["SmartHire backend"]

node_user -->|"signs in"| node_login
node_user -->|"registers"| node_registration
node_login -->|"authenticates"| node_login_api
node_login -->|"shares identity"| node_shared
node_login -->|"routes candidate"| node_candidate_home
node_login -->|"routes recruiter"| node_recruiter_home
node_registration -->|"creates candidate"| node_registration_api
node_candidate_home -->|"loads assessments"| node_candidate_api
node_candidate_api -->|"requests assessments"| node_backend
node_candidate_home -->|"uses assessment data"| node_assessment_data
node_assessment_view -->|"loads and submits"| node_assessment_api
node_assessment_api -->|"gets questions"| node_backend
node_assessment_api -->|"posts submission"| node_backend
node_assessment_api -->|"uses question data"| node_question_data
node_recruiter_home -->|"loads candidates"| node_recruiter_api
node_recruiter_api -->|"requests candidates"| node_backend
node_recruiter_home -->|"uses review data"| node_candidate_view
node_candidate_filter -->|"filters candidates"| node_candidate_view
node_scheduling -->|"schedules or revokes"| node_scheduling_api
node_scheduling_api -->|"posts schedule changes"| node_backend

click node_routing "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login-routing.module.ts"
click node_login "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login.component.ts"
click node_login_api "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login.service.ts"
click node_shared "https://github.com/i-aravind/smart-hire/blob/main/src/shared/shared.service.ts"
click node_registration "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-register/candidate-register.component.ts"
click node_registration_api "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-register/candidate-register.service.ts"
click node_candidate_home "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/candidate-home.component.ts"
click node_candidate_api "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/candidate-home.service.ts"
click node_assessment_data "https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/IAssessment.ts"
click node_assessment_view "https://github.com/i-aravind/smart-hire/blob/main/src/assessment/assessment.component.ts"
click node_assessment_api "https://github.com/i-aravind/smart-hire/blob/main/src/assessment/assessment.service.ts"
click node_question_data "https://github.com/i-aravind/smart-hire/blob/main/src/assessment/IQuestion.ts"
click node_recruiter_home "https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/recruiter-home.component.ts"
click node_recruiter_api "https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/recruiter-home.service.ts"
click node_candidate_view "https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/IcandidateView.ts"
click node_candidate_filter "https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/candidate-pipe.ts"
click node_scheduling "https://github.com/i-aravind/smart-hire/blob/main/src/schedule-assessment/schedule-assessment.component.ts"
click node_scheduling_api "https://github.com/i-aravind/smart-hire/blob/main/src/schedule-assessment/schedule-assessment.service.ts"

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_routing,node_login,node_login_api,node_shared,node_registration,node_registration_api toneBlue
class node_candidate_home,node_candidate_api,node_assessment_data toneAmber
class node_recruiter_home,node_recruiter_api,node_candidate_view,node_candidate_filter,node_scheduling,node_scheduling_api toneMint
class node_assessment_view,node_assessment_api,node_question_data toneRose
class node_user,node_backend toneIndigo
```

## Components

### Identity

- [Application routes](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login-routing.module.ts): `src/candidate-login/candidate-login-routing.module.ts`
- [Sign in](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login.component.ts): `src/candidate-login/candidate-login.component.ts`
- [Authentication API client](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-login/candidate-login.service.ts): `src/candidate-login/candidate-login.service.ts`
- [Shared session value](https://github.com/i-aravind/smart-hire/blob/main/src/shared/shared.service.ts): `src/shared/shared.service.ts`
- [Candidate registration](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-register/candidate-register.component.ts): `src/candidate-register/candidate-register.component.ts`
- [Registration API client](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-register/candidate-register.service.ts): `src/candidate-register/candidate-register.service.ts`

### Candidate workflow

- [Candidate dashboard](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/candidate-home.component.ts): `src/candidate-home/candidate-home.component.ts`
- [Assessment lookup](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/candidate-home.service.ts): `src/candidate-home/candidate-home.service.ts`
- [Assigned assessments](https://github.com/i-aravind/smart-hire/blob/main/src/candidate-home/IAssessment.ts): `src/candidate-home/IAssessment.ts`

### Recruiter workflow

- [Recruiter dashboard](https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/recruiter-home.component.ts): `src/recruiter-home/recruiter-home.component.ts`
- [Candidate lookup](https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/recruiter-home.service.ts): `src/recruiter-home/recruiter-home.service.ts`
- [Candidate review data](https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/IcandidateView.ts): `src/recruiter-home/IcandidateView.ts`
- [Candidate filter](https://github.com/i-aravind/smart-hire/blob/main/src/recruiter-home/candidate-pipe.ts): `src/recruiter-home/candidate-pipe.ts`
- [Schedule or revoke](https://github.com/i-aravind/smart-hire/blob/main/src/schedule-assessment/schedule-assessment.component.ts): `src/schedule-assessment/schedule-assessment.component.ts`
- [Scheduling API client](https://github.com/i-aravind/smart-hire/blob/main/src/schedule-assessment/schedule-assessment.service.ts): `src/schedule-assessment/schedule-assessment.service.ts`

### Assessment workflow

- [Assessment taking](https://github.com/i-aravind/smart-hire/blob/main/src/assessment/assessment.component.ts): `src/assessment/assessment.component.ts`
- [Question and submission API](https://github.com/i-aravind/smart-hire/blob/main/src/assessment/assessment.service.ts): `src/assessment/assessment.service.ts`
- [Questions and submission](https://github.com/i-aravind/smart-hire/blob/main/src/assessment/IQuestion.ts): `src/assessment/IQuestion.ts`

### Other components

- **Candidate or recruiter**
- **SmartHire backend**

## Connections

- Candidate or recruiter → Sign in: signs in
- Candidate or recruiter → Candidate registration: registers
- Sign in → Authentication API client: authenticates (evidence: `src/candidate-login/candidate-login.component.ts`)
- Sign in → Shared session value: shares identity (evidence: `src/candidate-login/candidate-login.component.ts`)
- Sign in → Candidate dashboard: routes candidate (evidence: `src/candidate-login/candidate-login.component.ts`)
- Sign in → Recruiter dashboard: routes recruiter (evidence: `src/candidate-login/candidate-login.component.ts`)
- Candidate registration → Registration API client: creates candidate (evidence: `src/candidate-register/candidate-register.component.ts`)
- Candidate dashboard → Assessment lookup: loads assessments (evidence: `src/candidate-home/candidate-home.component.ts`)
- Assessment lookup → SmartHire backend: requests assessments (evidence: `src/candidate-home/candidate-home.service.ts`)
- Candidate dashboard → Assigned assessments: uses assessment data (evidence: `src/candidate-home/candidate-home.component.ts`)
- Assessment taking → Question and submission API: loads and submits (evidence: `src/assessment/assessment.component.ts`)
- Question and submission API → SmartHire backend: gets questions (evidence: `src/assessment/assessment.service.ts`)
- Question and submission API → SmartHire backend: posts submission (evidence: `src/assessment/assessment.service.ts`)
- Question and submission API → Questions and submission: uses question data (evidence: `src/assessment/assessment.service.ts`)
- Recruiter dashboard → Candidate lookup: loads candidates (evidence: `src/recruiter-home/recruiter-home.component.ts`)
- Candidate lookup → SmartHire backend: requests candidates (evidence: `src/recruiter-home/recruiter-home.service.ts`)
- Recruiter dashboard → Candidate review data: uses review data (evidence: `src/recruiter-home/recruiter-home.component.ts`)
- Candidate filter → Candidate review data: filters candidates (evidence: `src/recruiter-home/candidate-pipe.ts`)
- Schedule or revoke → Scheduling API client: schedules or revokes (evidence: `src/schedule-assessment/schedule-assessment.component.ts`)
- Scheduling API client → SmartHire backend: posts schedule changes (evidence: `src/schedule-assessment/schedule-assessment.service.ts`)
