# vchaitrad/nexova architecture

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

## Overview

Nexova is a two-sided job portal for job seekers and recruiters, with admin review of identity trust badges. The main journey runs from account creation and verification through job discovery and application to recruiter decisions and applicant updates. React pages call an Express API backed by MongoDB models; notification services support email, SMS and WhatsApp. The README documents OTP flows, saved jobs, uploads, role-based dashboards and language options; some routes are not excerpted, so their internal links are omitted where source evidence is unavailable.

Main entry points: [`frontend/src/App.jsx`](https://github.com/vchaitrad/nexova/blob/main/frontend/src/App.jsx) (React app), [`backend/routes/applications.js`](https://github.com/vchaitrad/nexova/blob/main/backend/routes/applications.js) (Application API), [`backend/routes/auth.js`](https://github.com/vchaitrad/nexova/blob/main/backend/routes/auth.js) (Auth API), [`backend/routes/jobs.js`](https://github.com/vchaitrad/nexova/blob/main/backend/routes/jobs.js) (Job API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web experience"]
  node_app["React app<br/>[App.jsx]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
end

subgraph group_identity["Identity and trust"]
  node_authpages["Login and signup<br/>[Signup.jsx]"]
  node_profile["Profile verification<br/>[Profile.jsx]"]
  node_authroutes["Auth API<br/>[auth.js]"]
end

subgraph group_marketplace["Job marketplace"]
  node_catalog["Browse jobs<br/>[Jobs.jsx]"]
  node_detail["Job details<br/>[JobDetail.jsx]"]
  node_postjob["Post a job<br/>[PostJob.jsx]"]
  node_seekerdesk["Seeker dashboard"]
  node_recruiterdesk["Recruiter dashboard"]
  node_jobapi["Job API<br/>[jobs.js]"]
  node_applicationapi["Application API<br/>[applications.js]"]
end

subgraph group_persistence["Domain data"]
  node_user[("User records<br/>[User.js]")]
  node_job[("Job records<br/>[Job.js]")]
  node_application[("Application records<br/>[Application.js]")]
end

subgraph group_messaging["Notifications"]
  node_email["Email service<br/>[emailService.js]"]
  node_sms["SMS service<br/>[smsService.js]"]
  node_whatsapp["WhatsApp service<br/>[whatsappService.js]"]
end

node_seeker(("Job seeker"))
node_recruiter(("Recruiter"))
node_admin(("Admin"))
node_emailprovider["SMTP provider"]
node_smsprovider["Fast2SMS"]
node_twilio["Twilio"]

node_seeker -->|"uses"| node_app
node_recruiter -->|"uses"| node_app
node_admin -->|"uses"| node_app
node_app -->|"provides state"| node_authstate
node_app -->|"routes to"| node_authpages
node_app -->|"routes to"| node_catalog
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_postjob
node_app -->|"routes to"| node_seekerdesk
node_app -->|"routes to"| node_recruiterdesk
node_authpages -.->|"calls"| node_authroutes
node_profile -.->|"uploads proofs"| node_authroutes
node_authroutes -->|"reads/writes"| node_user
node_catalog -.->|"requests jobs"| node_jobapi
node_detail -.->|"requests job"| node_jobapi
node_detail -.->|"submits application"| node_applicationapi
node_postjob -.->|"creates job"| node_jobapi
node_seekerdesk -.->|"tracks applications"| node_applicationapi
node_recruiterdesk -.->|"reviews applicants"| node_applicationapi
node_jobapi -->|"reads/writes"| node_job
node_applicationapi -->|"reads/writes"| node_application
node_applicationapi -->|"checks ownership"| node_job
node_applicationapi -->|"loads applicant"| node_user
node_authroutes -->|"sends email"| node_email
node_authroutes -->|"sends SMS"| node_sms
node_applicationapi -->|"notifies status"| node_email
node_applicationapi -->|"notifies status"| node_sms
node_authroutes -->|"sends alerts"| node_whatsapp
node_email -.->|"sends mail"| node_emailprovider
node_sms -->|"sends SMS"| node_smsprovider
node_whatsapp -.->|"uses gateway"| node_twilio

click node_app "https://github.com/vchaitrad/nexova/blob/main/frontend/src/App.jsx"
click node_authstate "https://github.com/vchaitrad/nexova/blob/main/frontend/src/context/AuthContext.jsx"
click node_authpages "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/Signup.jsx"
click node_profile "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/Profile.jsx"
click node_authroutes "https://github.com/vchaitrad/nexova/blob/main/backend/routes/auth.js"
click node_user "https://github.com/vchaitrad/nexova/blob/main/backend/models/User.js"
click node_catalog "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/Jobs.jsx"
click node_detail "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/JobDetail.jsx"
click node_postjob "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/PostJob.jsx"
click node_seekerdesk "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/JobSeekerDashboard.jsx"
click node_recruiterdesk "https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/RecruiterDashboard.jsx"
click node_jobapi "https://github.com/vchaitrad/nexova/blob/main/backend/routes/jobs.js"
click node_applicationapi "https://github.com/vchaitrad/nexova/blob/main/backend/routes/applications.js"
click node_job "https://github.com/vchaitrad/nexova/blob/main/backend/models/Job.js"
click node_application "https://github.com/vchaitrad/nexova/blob/main/backend/models/Application.js"
click node_email "https://github.com/vchaitrad/nexova/blob/main/backend/services/emailService.js"
click node_sms "https://github.com/vchaitrad/nexova/blob/main/backend/services/smsService.js"
click node_whatsapp "https://github.com/vchaitrad/nexova/blob/main/backend/services/whatsappService.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_app,node_authstate toneBlue
class node_authpages,node_profile,node_authroutes toneAmber
class node_catalog,node_detail,node_postjob,node_seekerdesk,node_recruiterdesk,node_jobapi,node_applicationapi toneMint
class node_user,node_job,node_application toneRose
class node_email,node_sms,node_whatsapp,node_seeker,node_recruiter,node_admin,node_emailprovider,node_smsprovider,node_twilio toneIndigo
```

## Components

### Web experience

- [React app](https://github.com/vchaitrad/nexova/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Auth state](https://github.com/vchaitrad/nexova/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`

### Identity and trust

- [Login and signup](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/Signup.jsx): `frontend/src/pages/Signup.jsx`
- [Profile verification](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/Profile.jsx): `frontend/src/pages/Profile.jsx`
- [Auth API](https://github.com/vchaitrad/nexova/blob/main/backend/routes/auth.js): `backend/routes/auth.js`

### Job marketplace

- [Browse jobs](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/Jobs.jsx): `frontend/src/pages/Jobs.jsx`
- [Job details](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/JobDetail.jsx): `frontend/src/pages/JobDetail.jsx`
- [Post a job](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/PostJob.jsx): `frontend/src/pages/PostJob.jsx`
- [Seeker dashboard](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/JobSeekerDashboard.jsx): `frontend/src/pages/JobSeekerDashboard.jsx`
- [Recruiter dashboard](https://github.com/vchaitrad/nexova/blob/main/frontend/src/pages/RecruiterDashboard.jsx): `frontend/src/pages/RecruiterDashboard.jsx`
- [Job API](https://github.com/vchaitrad/nexova/blob/main/backend/routes/jobs.js): `backend/routes/jobs.js`
- [Application API](https://github.com/vchaitrad/nexova/blob/main/backend/routes/applications.js): `backend/routes/applications.js`

### Domain data

- [User records](https://github.com/vchaitrad/nexova/blob/main/backend/models/User.js): `backend/models/User.js`
- [Job records](https://github.com/vchaitrad/nexova/blob/main/backend/models/Job.js): `backend/models/Job.js`
- [Application records](https://github.com/vchaitrad/nexova/blob/main/backend/models/Application.js): `backend/models/Application.js`

### Notifications

- [Email service](https://github.com/vchaitrad/nexova/blob/main/backend/services/emailService.js): `backend/services/emailService.js`
- [SMS service](https://github.com/vchaitrad/nexova/blob/main/backend/services/smsService.js): `backend/services/smsService.js`
- [WhatsApp service](https://github.com/vchaitrad/nexova/blob/main/backend/services/whatsappService.js): `backend/services/whatsappService.js`

### Other components

- **Job seeker**
- **Recruiter**
- **Admin**
- **SMTP provider**
- **Fast2SMS**
- **Twilio**

## Connections

- Job seeker → React app: uses (evidence: `README.md`)
- Recruiter → React app: uses (evidence: `README.md`)
- Admin → React app: uses (evidence: `README.md`)
- React app → Auth state: provides state (evidence: `frontend/src/App.jsx`)
- React app → Login and signup: routes to (evidence: `frontend/src/App.jsx`)
- React app → Browse jobs: routes to (evidence: `frontend/src/App.jsx`)
- React app → Job details: routes to (evidence: `frontend/src/App.jsx`)
- React app → Post a job: routes to (evidence: `frontend/src/App.jsx`)
- React app → Seeker dashboard: routes to (evidence: `frontend/src/App.jsx`)
- React app → Recruiter dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Login and signup → Auth API: calls
- Profile verification → Auth API: uploads proofs
- Auth API → User records: reads/writes (evidence: `backend/routes/auth.js`)
- Browse jobs → Job API: requests jobs
- Job details → Job API: requests job
- Job details → Application API: submits application
- Post a job → Job API: creates job
- Seeker dashboard → Application API: tracks applications
- Recruiter dashboard → Application API: reviews applicants
- Job API → Job records: reads/writes (evidence: `backend/routes/jobs.js`)
- Application API → Application records: reads/writes (evidence: `backend/routes/applications.js`)
- Application API → Job records: checks ownership (evidence: `backend/routes/applications.js`)
- Application API → User records: loads applicant (evidence: `backend/routes/applications.js`)
- Auth API → Email service: sends email (evidence: `backend/routes/auth.js`)
- Auth API → SMS service: sends SMS (evidence: `backend/routes/auth.js`)
- Application API → Email service: notifies status (evidence: `backend/routes/applications.js`)
- Application API → SMS service: notifies status (evidence: `backend/routes/applications.js`)
- Auth API → WhatsApp service: sends alerts
- Email service → SMTP provider: sends mail
- SMS service → Fast2SMS: sends SMS (evidence: `backend/services/smsService.js`)
- WhatsApp service → Twilio: uses gateway
