# erniranjank15/jobportal_frontend architecture

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

## Overview

NK Job Portal is a role-based job board for applicants and recruiters. Visitors can register or sign in, browse jobs, and access protected profile and role-specific dashboards; applicants can manage applications and resumes, while recruiters can post and manage jobs and review applications. The frontend routes through React pages, uses Redux thunks and slices for state, and sends API requests through a shared Axios client. The README is empty, so capabilities and relationships here are based on the source index and shown excerpts; some page-level behavior is therefore not linked beyond the routes confirmed in App.jsx.

Main entry points: [`src/App.jsx`](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/App.jsx) (Route application), [`src/features/auth/authThunk.js`](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/auth/authThunk.js) (Identity actions), [`src/pages/RecruiterDashboard.jsx`](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/RecruiterDashboard.jsx) (Recruiter dashboard), [`src/features/application/applnThunk.js`](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/application/applnThunk.js) (Application actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Navigation and access"]
  node_app["Route application<br/>[App.jsx]"]
  node_navbar["Navigation bar<br/>[Navbar.jsx]"]
  node_protected["Role guard<br/>[ProtectedRoute.jsx]"]
end

subgraph group_identity["Identity and profiles"]
  node_authpages["Sign-in and registration"]
  node_profile["Profile management<br/>[Profile.jsx]"]
  node_auththunk["Identity actions<br/>[authThunk.js]"]
  node_authapi["Identity endpoints<br/>[authAPI.js]"]
  node_authslice["Identity state<br/>[authSlice.js]"]
end

subgraph group_jobs["Job discovery and management"]
  node_jobpages["Job browsing"]
  node_jobdetails["Job details<br/>[JobDetails.jsx]"]
  node_postjob["Job posting<br/>[PostJob.jsx]"]
  node_editjob["Job editing<br/>[EditJob.jsx]"]
  node_recruiterdash["Recruiter dashboard"]
  node_jobthunk["Job actions<br/>[jobThunk.js]"]
  node_jobapi["Job endpoints<br/>[jobAPI.js]"]
end

subgraph group_applications["Applications"]
  node_applicantdash["Applicant dashboard<br/>[Dashboard.jsx]"]
  node_applicationthunk["Application actions<br/>[applnThunk.js]"]
  node_applicationapi["Application endpoints<br/>[applicationAPI.js]"]
  node_applicationstate["Application state<br/>[applnSlice.js]"]
end

subgraph group_state["State and API access"]
  node_store["Redux store<br/>[store.js]"]
  node_axios["HTTP client<br/>[axios.js]"]
end

node_visitor(("Visitor"))
node_applicant(("Applicant"))
node_recruiter(("Recruiter"))
node_backend["Job portal API"]

node_visitor -.->|"opens"| node_app
node_applicant -.->|"uses"| node_app
node_recruiter -.->|"uses"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"guards routes"| node_protected
node_app -->|"routes to"| node_authpages
node_app -->|"routes to"| node_jobpages
node_app -->|"routes to"| node_jobdetails
node_app -->|"routes to"| node_applicantdash
node_app -->|"routes to"| node_recruiterdash
node_app -->|"routes to"| node_postjob
node_app -->|"routes to"| node_editjob
node_app -->|"routes to"| node_profile
node_app -->|"dispatches"| node_auththunk
node_navbar -->|"dispatches logout"| node_auththunk
node_profile -->|"dispatches updates"| node_auththunk
node_auththunk -->|"calls"| node_authapi
node_authapi -->|"sends requests"| node_axios
node_auththunk -->|"updates state"| node_authslice
node_recruiterdash -->|"dispatches"| node_jobthunk
node_recruiterdash -->|"loads and updates"| node_applicationapi
node_editjob -->|"dispatches"| node_jobthunk
node_applicantdash -->|"dispatches"| node_applicationthunk
node_jobthunk -->|"calls"| node_jobapi
node_jobapi -->|"sends requests"| node_axios
node_applicationthunk -->|"calls"| node_applicationapi
node_applicationthunk -->|"updates state"| node_applicationstate
node_store -->|"registers reducer"| node_authslice
node_store -->|"registers reducer"| node_applicationstate
node_axios -->|"makes HTTP requests"| node_backend

click node_app "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/App.jsx"
click node_navbar "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/components/Navbar.jsx"
click node_protected "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/components/ProtectedRoute.jsx"
click node_authpages "https://github.com/erniranjank15/jobportal_frontend/tree/main/src/pages"
click node_profile "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/Profile.jsx"
click node_auththunk "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/auth/authThunk.js"
click node_authapi "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/API/authAPI.js"
click node_authslice "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/auth/authSlice.js"
click node_jobpages "https://github.com/erniranjank15/jobportal_frontend/tree/main/src/pages"
click node_jobdetails "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/JobDetails.jsx"
click node_postjob "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/PostJob.jsx"
click node_editjob "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/EditJob.jsx"
click node_recruiterdash "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/RecruiterDashboard.jsx"
click node_jobthunk "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/job/jobThunk.js"
click node_jobapi "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/API/jobAPI.js"
click node_applicantdash "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/Dashboard.jsx"
click node_applicationthunk "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/application/applnThunk.js"
click node_applicationapi "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/API/applicationAPI.js"
click node_applicationstate "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/application/applnSlice.js"
click node_store "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/app/store.js"
click node_axios "https://github.com/erniranjank15/jobportal_frontend/blob/main/src/services/axios.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_navbar,node_protected toneBlue
class node_authpages,node_profile,node_auththunk,node_authapi,node_authslice toneAmber
class node_jobpages,node_jobdetails,node_postjob,node_editjob,node_recruiterdash,node_jobthunk,node_jobapi,node_backend toneMint
class node_applicantdash,node_applicationthunk,node_applicationapi,node_applicationstate toneRose
class node_store,node_axios,node_visitor,node_applicant,node_recruiter toneIndigo
```

## Components

### Navigation and access

- [Route application](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation bar](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Role guard](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/components/ProtectedRoute.jsx): `src/components/ProtectedRoute.jsx`

### Identity and profiles

- [Sign-in and registration](https://github.com/erniranjank15/jobportal_frontend/tree/main/src/pages): `src/pages`
- [Profile management](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/Profile.jsx): `src/pages/Profile.jsx`
- [Identity actions](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/auth/authThunk.js): `src/features/auth/authThunk.js`
- [Identity endpoints](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/API/authAPI.js): `src/API/authAPI.js`
- [Identity state](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/auth/authSlice.js): `src/features/auth/authSlice.js`

### Job discovery and management

- [Job browsing](https://github.com/erniranjank15/jobportal_frontend/tree/main/src/pages): `src/pages`
- [Job details](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/JobDetails.jsx): `src/pages/JobDetails.jsx`
- [Job posting](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/PostJob.jsx): `src/pages/PostJob.jsx`
- [Job editing](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/EditJob.jsx): `src/pages/EditJob.jsx`
- [Recruiter dashboard](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/RecruiterDashboard.jsx): `src/pages/RecruiterDashboard.jsx`
- [Job actions](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/job/jobThunk.js): `src/features/job/jobThunk.js`
- [Job endpoints](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/API/jobAPI.js): `src/API/jobAPI.js`

### Applications

- [Applicant dashboard](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Application actions](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/application/applnThunk.js): `src/features/application/applnThunk.js`
- [Application endpoints](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/API/applicationAPI.js): `src/API/applicationAPI.js`
- [Application state](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/features/application/applnSlice.js): `src/features/application/applnSlice.js`

### State and API access

- [Redux store](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/app/store.js): `src/app/store.js`
- [HTTP client](https://github.com/erniranjank15/jobportal_frontend/blob/main/src/services/axios.js): `src/services/axios.js`

### Other components

- **Visitor**
- **Applicant**
- **Recruiter**
- **Job portal API**

## Connections

- Visitor → Route application: opens
- Applicant → Route application: uses
- Recruiter → Route application: uses
- Route application → Navigation bar: renders (evidence: `src/App.jsx`)
- Route application → Role guard: guards routes (evidence: `src/App.jsx`)
- Route application → Sign-in and registration: routes to (evidence: `src/App.jsx`)
- Route application → Job browsing: routes to (evidence: `src/App.jsx`)
- Route application → Job details: routes to (evidence: `src/App.jsx`)
- Route application → Applicant dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Recruiter dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Job posting: routes to (evidence: `src/App.jsx`)
- Route application → Job editing: routes to (evidence: `src/App.jsx`)
- Route application → Profile management: routes to (evidence: `src/App.jsx`)
- Route application → Identity actions: dispatches (evidence: `src/App.jsx`)
- Navigation bar → Identity actions: dispatches logout (evidence: `src/components/Navbar.jsx`)
- Profile management → Identity actions: dispatches updates (evidence: `src/pages/Profile.jsx`)
- Identity actions → Identity endpoints: calls (evidence: `src/features/auth/authThunk.js`)
- Identity endpoints → HTTP client: sends requests (evidence: `src/API/authAPI.js`)
- Identity actions → Identity state: updates state (evidence: `src/features/auth/authSlice.js`)
- Recruiter dashboard → Job actions: dispatches (evidence: `src/pages/RecruiterDashboard.jsx`)
- Recruiter dashboard → Application endpoints: loads and updates (evidence: `src/pages/RecruiterDashboard.jsx`)
- Job editing → Job actions: dispatches (evidence: `src/pages/EditJob.jsx`)
- Applicant dashboard → Application actions: dispatches (evidence: `src/pages/Dashboard.jsx`)
- Job actions → Job endpoints: calls (evidence: `src/features/job/jobThunk.js`)
- Job endpoints → HTTP client: sends requests (evidence: `src/API/jobAPI.js`)
- Application actions → Application endpoints: calls (evidence: `src/features/application/applnThunk.js`)
- Application actions → Application state: updates state (evidence: `src/features/application/applnSlice.js`)
- Redux store → Identity state: registers reducer (evidence: `src/app/store.js`)
- Redux store → Application state: registers reducer (evidence: `src/app/store.js`)
- HTTP client → Job portal API: makes HTTP requests (evidence: `src/services/axios.js`)
