# mdfahad05/job-portal architecture

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

- Interactive diagram: https://gitdiagram.com/mdfahad05/job-portal
- Repository: https://github.com/mdfahad05/job-portal

## Overview

Job Portal is a role-based hiring application: seekers find jobs, maintain profiles and resumes, and track applications; employers manage listings and applicants; admins review employer verification. The React app calls an Express API, whose handlers query a SQLite-backed data layer. The excerpts show key seeker, employer, job, and admin flows, but not every route or client request, so omitted connections are not inferred.

Main entry points: [`server/src/db.js`](https://github.com/mdfahad05/job-portal/blob/main/server/src/db.js) (SQLite data access), [`client/src/App.jsx`](https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx) (Navigation and routes), [`server/src/index.js`](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js) (Applications), [`server/sql/schema.sqlite.sql`](https://github.com/mdfahad05/job-portal/blob/main/server/sql/schema.sqlite.sql) (Database schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_navigation["Navigation and routes<br/>[App.jsx]"]
  node_job_search["Job search<br/>[App.jsx]"]
  node_seeker_ui["Seeker dashboard<br/>[App.jsx]"]
  node_employer_ui["Employer dashboard<br/>[App.jsx]"]
  node_admin_ui["Admin dashboard<br/>[App.jsx]"]
end

subgraph group_server["API and workflows"]
  node_auth_api["Authentication<br/>[index.js]"]
  node_jobs_api["Job listings<br/>[index.js]"]
  node_applications_api["Applications<br/>[index.js]"]
  node_seeker_api["Seeker profiles<br/>[index.js]"]
  node_employer_api["Employer workflows<br/>[index.js]"]
  node_admin_api["Employer verification<br/>[index.js]"]
end

subgraph group_persistence["Persistence and files"]
  node_data_access["SQLite data access<br/>[db.js]"]
  node_database[("Portal database<br/>[db.js]")]
  node_schema["Database schema<br/>[schema.sqlite.sql]"]
  node_resume_files["Resume uploads<br/>[index.js]"]
end

node_user(("Portal user"))

node_user -->|"uses"| node_navigation
node_navigation -->|"routes to"| node_job_search
node_navigation -->|"routes to"| node_seeker_ui
node_navigation -->|"routes to"| node_employer_ui
node_navigation -->|"routes to"| node_admin_ui
node_job_search -->|"requests jobs"| node_jobs_api
node_job_search -->|"submits application"| node_applications_api
node_seeker_ui -->|"loads and updates"| node_seeker_api
node_seeker_ui -->|"loads applications"| node_applications_api
node_seeker_ui -->|"uploads resume"| node_resume_files
node_employer_ui -->|"loads profile"| node_employer_api
node_employer_ui -->|"posts jobs"| node_jobs_api
node_employer_ui -->|"loads applicants"| node_applications_api
node_admin_ui -->|"reviews employers"| node_admin_api
node_jobs_api -->|"queries data"| node_data_access
node_applications_api -->|"queries data"| node_data_access
node_seeker_api -->|"queries data"| node_data_access
node_employer_api -->|"queries data"| node_data_access
node_admin_api -->|"queries data"| node_data_access
node_auth_api -.->|"queries data"| node_data_access
node_data_access -->|"reads and writes"| node_database
node_data_access -->|"loads schema"| node_schema
node_seeker_api -->|"stores resume"| node_resume_files

click node_navigation "https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx"
click node_job_search "https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx"
click node_seeker_ui "https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx"
click node_employer_ui "https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx"
click node_admin_ui "https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx"
click node_auth_api "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js"
click node_jobs_api "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js"
click node_applications_api "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js"
click node_seeker_api "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js"
click node_employer_api "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js"
click node_admin_api "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js"
click node_data_access "https://github.com/mdfahad05/job-portal/blob/main/server/src/db.js"
click node_database "https://github.com/mdfahad05/job-portal/blob/main/server/src/db.js"
click node_schema "https://github.com/mdfahad05/job-portal/blob/main/server/sql/schema.sqlite.sql"
click node_resume_files "https://github.com/mdfahad05/job-portal/blob/main/server/src/index.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_navigation,node_job_search,node_seeker_ui,node_employer_ui,node_admin_ui,node_user toneBlue
class node_auth_api,node_jobs_api,node_applications_api,node_seeker_api,node_employer_api,node_admin_api toneAmber
class node_data_access,node_database,node_schema,node_resume_files toneMint
```

## Components

### Web application

- [Navigation and routes](https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Job search](https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Seeker dashboard](https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Employer dashboard](https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Admin dashboard](https://github.com/mdfahad05/job-portal/blob/main/client/src/App.jsx): `client/src/App.jsx`

### API and workflows

- [Authentication](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`
- [Job listings](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`
- [Applications](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`
- [Seeker profiles](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`
- [Employer workflows](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`
- [Employer verification](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`

### Persistence and files

- [SQLite data access](https://github.com/mdfahad05/job-portal/blob/main/server/src/db.js): `server/src/db.js`
- [Portal database](https://github.com/mdfahad05/job-portal/blob/main/server/src/db.js): `server/src/db.js`
- [Database schema](https://github.com/mdfahad05/job-portal/blob/main/server/sql/schema.sqlite.sql): `server/sql/schema.sqlite.sql`
- [Resume uploads](https://github.com/mdfahad05/job-portal/blob/main/server/src/index.js): `server/src/index.js`

### Other components

- **Portal user**

## Connections

- Portal user → Navigation and routes: uses (evidence: `client/src/App.jsx`)
- Navigation and routes → Job search: routes to (evidence: `client/src/App.jsx`)
- Navigation and routes → Seeker dashboard: routes to (evidence: `client/src/App.jsx`)
- Navigation and routes → Employer dashboard: routes to (evidence: `client/src/App.jsx`)
- Navigation and routes → Admin dashboard: routes to (evidence: `client/src/App.jsx`)
- Job search → Job listings: requests jobs (evidence: `client/src/App.jsx`)
- Job search → Applications: submits application (evidence: `client/src/App.jsx`)
- Seeker dashboard → Seeker profiles: loads and updates (evidence: `client/src/App.jsx`)
- Seeker dashboard → Applications: loads applications (evidence: `client/src/App.jsx`)
- Seeker dashboard → Resume uploads: uploads resume (evidence: `client/src/App.jsx`)
- Employer dashboard → Employer workflows: loads profile (evidence: `client/src/App.jsx`)
- Employer dashboard → Job listings: posts jobs (evidence: `client/src/App.jsx`)
- Employer dashboard → Applications: loads applicants (evidence: `client/src/App.jsx`)
- Admin dashboard → Employer verification: reviews employers (evidence: `client/src/App.jsx`)
- Job listings → SQLite data access: queries data (evidence: `server/src/index.js`)
- Applications → SQLite data access: queries data (evidence: `server/src/index.js`)
- Seeker profiles → SQLite data access: queries data (evidence: `server/src/index.js`)
- Employer workflows → SQLite data access: queries data (evidence: `server/src/index.js`)
- Employer verification → SQLite data access: queries data (evidence: `server/src/index.js`)
- Authentication → SQLite data access: queries data (evidence: `server/src/index.js`)
- SQLite data access → Portal database: reads and writes (evidence: `server/src/db.js`)
- SQLite data access → Database schema: loads schema (evidence: `server/src/db.js`)
- Seeker profiles → Resume uploads: stores resume (evidence: `server/src/index.js`)
