# sarasuleiman02/bahath-jobz architecture

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

- Interactive diagram: https://gitdiagram.com/sarasuleiman02/bahath-jobz
- Repository: https://github.com/sarasuleiman02/bahath-jobz

## Overview

Bahath Jobz is a career and recruitment platform: people discover jobs, mentors and career resources, while signed-in seekers, employers, recruiters and mentors use role-specific dashboards. The route table is the visible entry point to public pages and protected workflows. The sampled pages show substantial mock-data-driven UI, while database schema is empty and sampled files do not establish a connection from this frontend to the API server. Several listed capabilities are routed but their implementation was not sampled, so edges are limited to explicit route and import evidence.

Main entry points: [`artifacts/bahath-jobz/src/App.tsx`](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/App.tsx) (Route application), [`artifacts/bahath-jobz/src/pages/Jobs.tsx`](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Jobs.tsx) (Job discovery), [`artifacts/bahath-jobz/src/pages/Mentors.tsx`](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Mentors.tsx) (Mentor directory), [`artifacts/bahath-jobz/src/pages/CareerServices.tsx`](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/CareerServices.tsx) (Career services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["Route application<br/>[App.tsx]"]
end

subgraph group_discovery["Career discovery"]
  node_jobs["Job discovery<br/>[Jobs.tsx]"]
  node_jobdetail["Job details<br/>[JobDetail.tsx]"]
  node_mentors["Mentor directory<br/>[Mentors.tsx]"]
  node_recruiters["Recruiter directory<br/>[Recruiters.tsx]"]
  node_mentorship["Mentor application"]
end

subgraph group_identity["Accounts and profiles"]
  node_auth["Auth context<br/>[AuthContext.tsx]"]
  node_protected["Role guard<br/>[ProtectedRoute.tsx]"]
  node_profiles["Public profiles<br/>[SeekerProfile.tsx]"]
  node_signup["Registration<br/>[Signup.tsx]"]
  node_login["Sign in<br/>[Login.tsx]"]
end

subgraph group_operations["Role dashboards"]
  node_seeker["Seeker dashboard"]
  node_employer["Employer dashboard"]
  node_recruiter["Recruiter dashboard"]
  node_mentor["Mentor dashboard"]
  node_applications["Application tracking<br/>[Applications.tsx]"]
  node_cvsearch["Candidate search<br/>[CVSearch.tsx]"]
  node_postjob["Job posting<br/>[PostJob.tsx]"]
end

subgraph group_services["Career services and content"]
  node_resume["Resume tools<br/>[ResumeBuilder.tsx]"]
  node_career["Career services<br/>[CareerServices.tsx]"]
  node_articles["Articles<br/>[Articles.tsx]"]
end

subgraph group_platform["API and persistence"]
  node_mockdata["Mock content<br/>[mock-data.ts]"]
  node_apiutil["Jobs API client<br/>[jobsApi.ts]"]
  node_api["API server<br/>[app.ts]"]
  node_db[("Database client<br/>[index.ts]")]
  node_schema["Database schema<br/>[index.ts]"]
end

node_visitor(("Platform users"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_jobs
node_app -->|"routes to"| node_jobdetail
node_app -->|"routes to"| node_mentors
node_app -->|"routes to"| node_recruiters
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_login
node_app -->|"provides auth"| node_auth
node_app -->|"guards routes"| node_protected
node_app -->|"routes to"| node_seeker
node_app -->|"routes to"| node_employer
node_app -->|"routes to"| node_recruiter
node_app -->|"routes to"| node_mentor
node_app -->|"routes to"| node_applications
node_app -->|"routes to"| node_cvsearch
node_app -->|"routes to"| node_postjob
node_app -->|"routes to"| node_mentorship
node_app -->|"routes to"| node_profiles
node_mentors -->|"reads mentors"| node_mockdata
node_career -->|"links to"| node_resume
node_app -->|"imports page"| node_career
node_app -->|"routes to"| node_articles
node_app -.->|"connects to"| node_api
node_api -.->|"uses"| node_db
node_db -->|"loads schema"| node_schema
node_jobs -.->|"may query"| node_apiutil

click node_app "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/App.tsx"
click node_auth "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/context/AuthContext.tsx"
click node_protected "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/components/auth/ProtectedRoute.tsx"
click node_jobs "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Jobs.tsx"
click node_jobdetail "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/JobDetail.tsx"
click node_mentors "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Mentors.tsx"
click node_recruiters "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Recruiters.tsx"
click node_profiles "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/SeekerProfile.tsx"
click node_signup "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Signup.tsx"
click node_login "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Login.tsx"
click node_seeker "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/SeekerDashboard.tsx"
click node_employer "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/EmployerDashboard.tsx"
click node_recruiter "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/RecruiterDashboard.tsx"
click node_mentor "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/MentorDashboard.tsx"
click node_applications "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/Applications.tsx"
click node_cvsearch "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/CVSearch.tsx"
click node_postjob "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/PostJob.tsx"
click node_mentorship "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/MentorApplication.tsx"
click node_resume "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/ResumeBuilder.tsx"
click node_career "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/CareerServices.tsx"
click node_articles "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Articles.tsx"
click node_mockdata "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/lib/mock-data.ts"
click node_apiutil "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/utils/jobsApi.ts"
click node_api "https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/api-server/src/app.ts"
click node_db "https://github.com/sarasuleiman02/bahath-jobz/blob/master/lib/db/src/index.ts"
click node_schema "https://github.com/sarasuleiman02/bahath-jobz/blob/master/lib/db/src/schema/index.ts"

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_visitor toneBlue
class node_jobs,node_jobdetail,node_mentors,node_recruiters,node_mentorship toneAmber
class node_auth,node_protected,node_profiles,node_signup,node_login toneMint
class node_seeker,node_employer,node_recruiter,node_mentor,node_applications,node_cvsearch,node_postjob toneRose
class node_resume,node_career,node_articles toneIndigo
class node_mockdata,node_apiutil,node_api,node_db,node_schema toneTeal
```

## Components

### Application entry

- [Route application](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/App.tsx): `artifacts/bahath-jobz/src/App.tsx`

### Career discovery

- [Job discovery](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Jobs.tsx): `artifacts/bahath-jobz/src/pages/Jobs.tsx`
- [Job details](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/JobDetail.tsx): `artifacts/bahath-jobz/src/pages/JobDetail.tsx`
- [Mentor directory](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Mentors.tsx): `artifacts/bahath-jobz/src/pages/Mentors.tsx`
- [Recruiter directory](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Recruiters.tsx): `artifacts/bahath-jobz/src/pages/Recruiters.tsx`
- [Mentor application](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/MentorApplication.tsx): `artifacts/bahath-jobz/src/pages/MentorApplication.tsx`

### Accounts and profiles

- [Auth context](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/context/AuthContext.tsx): `artifacts/bahath-jobz/src/context/AuthContext.tsx`
- [Role guard](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/components/auth/ProtectedRoute.tsx): `artifacts/bahath-jobz/src/components/auth/ProtectedRoute.tsx`
- [Public profiles](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/SeekerProfile.tsx): `artifacts/bahath-jobz/src/pages/SeekerProfile.tsx`
- [Registration](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Signup.tsx): `artifacts/bahath-jobz/src/pages/Signup.tsx`
- [Sign in](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Login.tsx): `artifacts/bahath-jobz/src/pages/Login.tsx`

### Role dashboards

- [Seeker dashboard](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/SeekerDashboard.tsx): `artifacts/bahath-jobz/src/pages/dashboard/SeekerDashboard.tsx`
- [Employer dashboard](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/EmployerDashboard.tsx): `artifacts/bahath-jobz/src/pages/dashboard/EmployerDashboard.tsx`
- [Recruiter dashboard](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/RecruiterDashboard.tsx): `artifacts/bahath-jobz/src/pages/dashboard/RecruiterDashboard.tsx`
- [Mentor dashboard](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/MentorDashboard.tsx): `artifacts/bahath-jobz/src/pages/dashboard/MentorDashboard.tsx`
- [Application tracking](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/Applications.tsx): `artifacts/bahath-jobz/src/pages/dashboard/Applications.tsx`
- [Candidate search](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/CVSearch.tsx): `artifacts/bahath-jobz/src/pages/dashboard/CVSearch.tsx`
- [Job posting](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/dashboard/PostJob.tsx): `artifacts/bahath-jobz/src/pages/dashboard/PostJob.tsx`

### Career services and content

- [Resume tools](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/ResumeBuilder.tsx): `artifacts/bahath-jobz/src/pages/ResumeBuilder.tsx`
- [Career services](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/CareerServices.tsx): `artifacts/bahath-jobz/src/pages/CareerServices.tsx`
- [Articles](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/pages/Articles.tsx): `artifacts/bahath-jobz/src/pages/Articles.tsx`

### API and persistence

- [Mock content](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/lib/mock-data.ts): `artifacts/bahath-jobz/src/lib/mock-data.ts`
- [Jobs API client](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/bahath-jobz/src/utils/jobsApi.ts): `artifacts/bahath-jobz/src/utils/jobsApi.ts`
- [API server](https://github.com/sarasuleiman02/bahath-jobz/blob/master/artifacts/api-server/src/app.ts): `artifacts/api-server/src/app.ts`
- [Database client](https://github.com/sarasuleiman02/bahath-jobz/blob/master/lib/db/src/index.ts): `lib/db/src/index.ts`
- [Database schema](https://github.com/sarasuleiman02/bahath-jobz/blob/master/lib/db/src/schema/index.ts): `lib/db/src/schema/index.ts`

### Other components

- **Platform users**

## Connections

- Platform users → Route application: opens
- Route application → Job discovery: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Job details: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Mentor directory: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Recruiter directory: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Registration: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Sign in: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Auth context: provides auth (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Role guard: guards routes (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Seeker dashboard: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Employer dashboard: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Recruiter dashboard: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Mentor dashboard: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Application tracking: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Candidate search: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Job posting: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Mentor application: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Public profiles: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Mentor directory → Mock content: reads mentors (evidence: `artifacts/bahath-jobz/src/pages/Mentors.tsx`)
- Career services → Resume tools: links to (evidence: `artifacts/bahath-jobz/src/pages/CareerServices.tsx`)
- Route application → Career services: imports page (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → Articles: routes to (evidence: `artifacts/bahath-jobz/src/App.tsx`)
- Route application → API server: connects to
- API server → Database client: uses
- Database client → Database schema: loads schema (evidence: `lib/db/src/index.ts`)
- Job discovery → Jobs API client: may query
