# hexagondigitalservices/job_portal architecture

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

- Interactive diagram: https://gitdiagram.com/hexagondigitalservices/job_portal
- Repository: https://github.com/hexagondigitalservices/job_portal

## Overview

This repository is a job portal with a candidate-facing site, an administration interface, and a backend API. Candidates browse and inspect jobs, manage profiles and saved jobs, and access interview-question material; administrators manage job listings, applicants, and company/role interview questions. The excerpts confirm some admin-to-API calls and backend job-update behavior, but do not show the frontend routing, backend route registration, or most candidate API wiring, so those connections are omitted rather than inferred.

Main entry points: [`backend/controllers/job.controller.js`](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/job.controller.js) (Job API), [`backend/controllers/interview.controller.js`](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/interview.controller.js) (Interview API), [`admin/src/components/ListJobs.jsx`](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListJobs.jsx) (Job management), [`admin/src/components/ListCompanyQuestion.jsx`](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListCompanyQuestion.jsx) (Company questions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_candidate["Candidate portal"]
  node_webapp["Candidate app<br/>[App.jsx]"]
  node_banner["Landing banner<br/>[Banner.jsx]"]
  node_findjobs["Find jobs<br/>[FindJobPage.jsx]"]
  node_jobdetails["Job details<br/>[JobDetailsPage.jsx]"]
  node_companypage["Company pages<br/>[CompanyPage.jsx]"]
  node_rolepage["Role pages<br/>[RolePage.jsx]"]
  node_candidateprofile["Candidate profile<br/>[Candidate.jsx]"]
  node_profileview["View profile"]
  node_savedjobs["Saved jobs<br/>[SavePage.jsx]"]
  node_interviewguide["Interview questions"]
  node_login["Login<br/>[LoginPage.jsx]"]
  node_signup["Sign up<br/>[SignUpPage.jsx]"]
  node_contact["Contact form<br/>[ContactPage.jsx]"]
  node_career["Career page<br/>[Career.jsx]"]
  node_navigation["Site navigation<br/>[Navbar.jsx]"]
  node_sitecontent["Site banner and footer<br/>[Footer.jsx]"]
end

subgraph group_admin["Administration"]
  node_adminapp["Admin app<br/>[App.jsx]"]
  node_jobmanagement["Job management<br/>[ListJobs.jsx]"]
  node_jobcreation["Add jobs<br/>[AddJobsPage.jsx]"]
  node_applicants["Applicants"]
  node_companymanagement["Company management<br/>[Companies.jsx]"]
  node_companyquestions["Company questions"]
  node_rolequestions["Role questions"]
  node_companyquestionform["Company question editor"]
  node_rolequestionform["Role question editor"]
  node_dashboard["Admin dashboard<br/>[Dashboard.jsx]"]
  node_adminnav["Admin navigation<br/>[Navbar.jsx]"]
end

subgraph group_backend["Backend services"]
  node_jobapi["Job API<br/>[job.controller.js]"]
  node_userapi["User API<br/>[user.controller.js]"]
  node_interviewapi["Interview API"]
  node_jobrecord[("Job records<br/>[job.model.js]")]
  node_emailservice["Email service<br/>[emailService.js]"]
  node_helpers["Backend helpers<br/>[helpers.js]"]
end

subgraph group_integrations["External services"]
end

node_visitor(("Candidate"))

node_visitor -->|"uses"| node_webapp
node_jobmanagement -->|"updates jobs"| node_jobapi
node_companyquestions -.->|"manages questions"| node_interviewapi
node_rolequestions -.->|"manages questions"| node_interviewapi
node_jobapi -.->|"reads and writes"| node_jobrecord

click node_webapp "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/App.jsx"
click node_banner "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Banner/Banner.jsx"
click node_findjobs "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/FindJobPage/FindJobPage.jsx"
click node_jobdetails "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/JobDetailsPage/JobDetailsPage.jsx"
click node_companypage "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/CompanyPage/CompanyPage.jsx"
click node_rolepage "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/RolePage/RolePage.jsx"
click node_candidateprofile "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Candidate/Candidate.jsx"
click node_profileview "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/ViewProfilePage/ViewProfilePage.jsx"
click node_savedjobs "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/SavePage/SavePage.jsx"
click node_interviewguide "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/InterviewQuestion/InterviewQuestion.jsx"
click node_login "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/LoginPage/LoginPage.jsx"
click node_signup "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/SignUpPage/SignUpPage.jsx"
click node_contact "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/ContactPage/ContactPage.jsx"
click node_career "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Career/Career.jsx"
click node_navigation "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Navbar/Navbar.jsx"
click node_sitecontent "https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Footer/Footer.jsx"
click node_adminapp "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/App.jsx"
click node_jobmanagement "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListJobs.jsx"
click node_jobcreation "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/AddJobsPage.jsx"
click node_applicants "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ViewApplicantsPage.jsx"
click node_companymanagement "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/Companies.jsx"
click node_companyquestions "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListCompanyQuestion.jsx"
click node_rolequestions "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListRoleQuestion.jsx"
click node_companyquestionform "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/CompanyQuestionPage.jsx"
click node_rolequestionform "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/RoleQuestionPage.jsx"
click node_dashboard "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/Dashboard.jsx"
click node_adminnav "https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/Navbar.jsx"
click node_jobapi "https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/job.controller.js"
click node_userapi "https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/user.controller.js"
click node_interviewapi "https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/interview.controller.js"
click node_jobrecord "https://github.com/hexagondigitalservices/job_portal/blob/main/backend/models/job.model.js"
click node_emailservice "https://github.com/hexagondigitalservices/job_portal/blob/main/backend/utils/emailService.js"
click node_helpers "https://github.com/hexagondigitalservices/job_portal/blob/main/backend/utils/helpers.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_webapp,node_banner,node_findjobs,node_jobdetails,node_companypage,node_rolepage,node_candidateprofile,node_profileview,node_savedjobs,node_interviewguide,node_login,node_signup,node_contact,node_career,node_navigation,node_sitecontent toneBlue
class node_adminapp,node_jobmanagement,node_jobcreation,node_applicants,node_companymanagement,node_companyquestions,node_rolequestions,node_companyquestionform,node_rolequestionform,node_dashboard,node_adminnav toneAmber
class node_jobapi,node_userapi,node_interviewapi,node_jobrecord,node_emailservice,node_helpers toneMint
class node_visitor toneIndigo
```

## Components

### Candidate portal

- [Candidate app](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Landing banner](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Banner/Banner.jsx): `frontend/src/components/Banner/Banner.jsx`
- [Find jobs](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/FindJobPage/FindJobPage.jsx): `frontend/src/components/FindJobPage/FindJobPage.jsx`
- [Job details](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/JobDetailsPage/JobDetailsPage.jsx): `frontend/src/components/JobDetailsPage/JobDetailsPage.jsx`
- [Company pages](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/CompanyPage/CompanyPage.jsx): `frontend/src/components/CompanyPage/CompanyPage.jsx`
- [Role pages](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/RolePage/RolePage.jsx): `frontend/src/components/RolePage/RolePage.jsx`
- [Candidate profile](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Candidate/Candidate.jsx): `frontend/src/components/Candidate/Candidate.jsx`
- [View profile](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/ViewProfilePage/ViewProfilePage.jsx): `frontend/src/components/ViewProfilePage/ViewProfilePage.jsx`
- [Saved jobs](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/SavePage/SavePage.jsx): `frontend/src/components/SavePage/SavePage.jsx`
- [Interview questions](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/InterviewQuestion/InterviewQuestion.jsx): `frontend/src/components/InterviewQuestion/InterviewQuestion.jsx`
- [Login](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/LoginPage/LoginPage.jsx): `frontend/src/components/LoginPage/LoginPage.jsx`
- [Sign up](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/SignUpPage/SignUpPage.jsx): `frontend/src/components/SignUpPage/SignUpPage.jsx`
- [Contact form](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/ContactPage/ContactPage.jsx): `frontend/src/components/ContactPage/ContactPage.jsx`
- [Career page](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Career/Career.jsx): `frontend/src/components/Career/Career.jsx`
- [Site navigation](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Navbar/Navbar.jsx): `frontend/src/components/Navbar/Navbar.jsx`
- [Site banner and footer](https://github.com/hexagondigitalservices/job_portal/blob/main/frontend/src/components/Footer/Footer.jsx): `frontend/src/components/Footer/Footer.jsx`

### Administration

- [Admin app](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/App.jsx): `admin/src/App.jsx`
- [Job management](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListJobs.jsx): `admin/src/components/ListJobs.jsx`
- [Add jobs](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/AddJobsPage.jsx): `admin/src/components/AddJobsPage.jsx`
- [Applicants](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ViewApplicantsPage.jsx): `admin/src/components/ViewApplicantsPage.jsx`
- [Company management](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/Companies.jsx): `admin/src/components/Companies.jsx`
- [Company questions](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListCompanyQuestion.jsx): `admin/src/components/ListCompanyQuestion.jsx`
- [Role questions](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/ListRoleQuestion.jsx): `admin/src/components/ListRoleQuestion.jsx`
- [Company question editor](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/CompanyQuestionPage.jsx): `admin/src/components/CompanyQuestionPage.jsx`
- [Role question editor](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/RoleQuestionPage.jsx): `admin/src/components/RoleQuestionPage.jsx`
- [Admin dashboard](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/Dashboard.jsx): `admin/src/components/Dashboard.jsx`
- [Admin navigation](https://github.com/hexagondigitalservices/job_portal/blob/main/admin/src/components/Navbar.jsx): `admin/src/components/Navbar.jsx`

### Backend services

- [Job API](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/job.controller.js): `backend/controllers/job.controller.js`
- [User API](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/user.controller.js): `backend/controllers/user.controller.js`
- [Interview API](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/controllers/interview.controller.js): `backend/controllers/interview.controller.js`
- [Job records](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/models/job.model.js): `backend/models/job.model.js`
- [Email service](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/utils/emailService.js): `backend/utils/emailService.js`
- [Backend helpers](https://github.com/hexagondigitalservices/job_portal/blob/main/backend/utils/helpers.js): `backend/utils/helpers.js`

### Other components

- **Candidate**

## Connections

- Candidate → Candidate app: uses
- Job management → Job API: updates jobs (evidence: `admin/src/components/ListJobs.jsx`)
- Company questions → Interview API: manages questions
- Role questions → Interview API: manages questions
- Job API → Job records: reads and writes
