# gauravgavhale2002/agenticai_hr_candidate_update_portol architecture

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

- Interactive diagram: https://gitdiagram.com/gauravgavhale2002/agenticai_hr_candidate_update_portol
- Repository: https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol

## Overview

TalentFlow AI is a candidate portal and HR recruitment workflow backed by a Spring Boot API and React interface. Candidates register with profiles and PDF resumes, then use the portal; HR reviews candidates and resumes, manages hiring status, and works with jobs and applications. Resume screening adds rule-based review flags and insights, not automated rejection. The excerpts support several controller-to-service and service-to-repository calls; frontend-to-API links are shown as unverified because the relevant App.tsx request code was not excerpted.

Main entry points: [`backend/src/main/java/com/talentflow/controller/HrController.java`](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/HrController.java) (HR routes), [`backend/src/main/java/com/talentflow/service/JobApplicationService.java`](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/JobApplicationService.java) (Job applications), [`frontend/src/App.tsx`](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/frontend/src/App.tsx) (Portal and dashboard), [`backend/src/main/java/com/talentflow/service/AuthService.java`](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/AuthService.java) (Registration and portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_frontend["Portal and dashboard<br/>[App.tsx]"]
end

subgraph group_api["API workflows"]
  node_auth_api["Authentication routes"]
  node_candidate_api["Candidate routes"]
  node_hr_api["HR routes<br/>[HrController.java]"]
  node_job_api["Job routes<br/>[JobController.java]"]
  node_auth["Registration and portal<br/>[AuthService.java]"]
  node_profiles["Candidate profiles"]
  node_applications["Job applications"]
  node_jobs["Job management<br/>[JobService.java]"]
end

subgraph group_screening["Resume screening"]
  node_screening_agent["Resume screening"]
  node_resume_storage["Resume file storage"]
end

subgraph group_records["Recruitment records"]
  node_candidate_data[("Candidate records<br/>[Candidate.java]")]
  node_job_data[("Job records<br/>[Job.java]")]
  node_application_data[("Application records")]
  node_resume_data[("Resume metadata<br/>[Resume.java]")]
  node_candidate_repo["Candidate repository"]
  node_job_repo["Job repository<br/>[JobRepository.java]"]
  node_application_repo["Application repository"]
end

node_candidate(("Candidate"))
node_hr(("HR manager"))

node_candidate -->|"uses portal"| node_frontend
node_hr -->|"uses dashboard"| node_frontend
node_frontend -.->|"submits requests"| node_auth_api
node_frontend -.->|"loads HR data"| node_hr_api
node_auth_api -->|"delegates"| node_auth
node_candidate_api -->|"delegates"| node_profiles
node_hr_api -->|"manages candidates"| node_auth
node_hr_api -->|"handles applications"| node_applications
node_hr_api -->|"resolves resume files"| node_resume_storage
node_job_api -->|"delegates"| node_jobs
node_auth -->|"analyzes resume"| node_screening_agent
node_auth -->|"stores resume"| node_resume_storage
node_profiles -->|"reads and writes"| node_candidate_repo
node_applications -->|"loads candidate"| node_candidate_repo
node_applications -->|"loads job"| node_job_repo
node_applications -->|"saves applications"| node_application_repo

click node_frontend "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/frontend/src/App.tsx"
click node_auth_api "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/AuthController.java"
click node_candidate_api "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/CandidateController.java"
click node_hr_api "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/HrController.java"
click node_job_api "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/JobController.java"
click node_auth "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/AuthService.java"
click node_profiles "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/CandidateService.java"
click node_applications "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/JobApplicationService.java"
click node_jobs "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/JobService.java"
click node_screening_agent "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/ResumeScreeningAgent.java"
click node_resume_storage "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/ResumeStorageService.java"
click node_candidate_data "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/Candidate.java"
click node_job_data "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/Job.java"
click node_application_data "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/JobApplication.java"
click node_resume_data "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/Resume.java"
click node_candidate_repo "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/repository/CandidateRepository.java"
click node_job_repo "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/repository/JobRepository.java"
click node_application_repo "https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/repository/JobApplicationRepository.java"

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_auth_api,node_candidate_api,node_hr_api,node_job_api,node_auth,node_profiles,node_applications,node_jobs toneAmber
class node_screening_agent,node_resume_storage toneMint
class node_candidate_data,node_job_data,node_application_data,node_resume_data,node_candidate_repo,node_job_repo,node_application_repo toneRose
class node_candidate,node_hr toneIndigo
```

## Components

### User experience

- [Portal and dashboard](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### API workflows

- [Authentication routes](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/AuthController.java): `backend/src/main/java/com/talentflow/controller/AuthController.java`
- [Candidate routes](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/CandidateController.java): `backend/src/main/java/com/talentflow/controller/CandidateController.java`
- [HR routes](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/HrController.java): `backend/src/main/java/com/talentflow/controller/HrController.java`
- [Job routes](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/controller/JobController.java): `backend/src/main/java/com/talentflow/controller/JobController.java`
- [Registration and portal](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/AuthService.java): `backend/src/main/java/com/talentflow/service/AuthService.java`
- [Candidate profiles](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/CandidateService.java): `backend/src/main/java/com/talentflow/service/CandidateService.java`
- [Job applications](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/JobApplicationService.java): `backend/src/main/java/com/talentflow/service/JobApplicationService.java`
- [Job management](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/JobService.java): `backend/src/main/java/com/talentflow/service/JobService.java`

### Resume screening

- [Resume screening](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/ResumeScreeningAgent.java): `backend/src/main/java/com/talentflow/service/ResumeScreeningAgent.java`
- [Resume file storage](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/service/ResumeStorageService.java): `backend/src/main/java/com/talentflow/service/ResumeStorageService.java`

### Recruitment records

- [Candidate records](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/Candidate.java): `backend/src/main/java/com/talentflow/entity/Candidate.java`
- [Job records](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/Job.java): `backend/src/main/java/com/talentflow/entity/Job.java`
- [Application records](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/JobApplication.java): `backend/src/main/java/com/talentflow/entity/JobApplication.java`
- [Resume metadata](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/entity/Resume.java): `backend/src/main/java/com/talentflow/entity/Resume.java`
- [Candidate repository](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/repository/CandidateRepository.java): `backend/src/main/java/com/talentflow/repository/CandidateRepository.java`
- [Job repository](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/repository/JobRepository.java): `backend/src/main/java/com/talentflow/repository/JobRepository.java`
- [Application repository](https://github.com/gauravgavhale2002/agenticai_hr_candidate_update_portol/blob/main/backend/src/main/java/com/talentflow/repository/JobApplicationRepository.java): `backend/src/main/java/com/talentflow/repository/JobApplicationRepository.java`

### Other components

- **Candidate**
- **HR manager**

## Connections

- Candidate → Portal and dashboard: uses portal (evidence: `README.md`)
- HR manager → Portal and dashboard: uses dashboard (evidence: `README.md`)
- Portal and dashboard → Authentication routes: submits requests
- Portal and dashboard → HR routes: loads HR data
- Authentication routes → Registration and portal: delegates (evidence: `backend/src/main/java/com/talentflow/controller/AuthController.java`)
- Candidate routes → Candidate profiles: delegates (evidence: `backend/src/main/java/com/talentflow/controller/CandidateController.java`)
- HR routes → Registration and portal: manages candidates (evidence: `backend/src/main/java/com/talentflow/controller/HrController.java`)
- HR routes → Job applications: handles applications (evidence: `backend/src/main/java/com/talentflow/controller/HrController.java`)
- HR routes → Resume file storage: resolves resume files (evidence: `backend/src/main/java/com/talentflow/controller/HrController.java`)
- Job routes → Job management: delegates (evidence: `backend/src/main/java/com/talentflow/controller/JobController.java`)
- Registration and portal → Resume screening: analyzes resume (evidence: `backend/src/main/java/com/talentflow/service/AuthService.java`)
- Registration and portal → Resume file storage: stores resume (evidence: `backend/src/main/java/com/talentflow/service/AuthService.java`)
- Candidate profiles → Candidate repository: reads and writes (evidence: `backend/src/main/java/com/talentflow/service/CandidateService.java`)
- Job applications → Candidate repository: loads candidate (evidence: `backend/src/main/java/com/talentflow/service/JobApplicationService.java`)
- Job applications → Job repository: loads job (evidence: `backend/src/main/java/com/talentflow/service/JobApplicationService.java`)
- Job applications → Application repository: saves applications (evidence: `backend/src/main/java/com/talentflow/service/JobApplicationService.java`)
