# charlesmabhande/job_portal architecture

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

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

## Overview

Lupane State University’s Job Portal is a role-based recruitment application. Candidates browse active openings, maintain profiles and documents, apply, and follow application and interview status; HR manages jobs, applications, and interviews; Management approves postings; SysAdmin manages accounts, security, logs, and settings. The graph reflects documented capabilities even where implementation excerpts were unavailable. MySQL is the application’s persistent store; relationships not visible in excerpts are included only where the README documents them.

Main entry points: [`config/database.php`](https://github.com/charlesmabhande/job_portal/blob/main/config/database.php) (MySQL database), [`config/config.php`](https://github.com/charlesmabhande/job_portal/blob/main/config/config.php) (Application configuration), [`api/applications.php`](https://github.com/charlesmabhande/job_portal/blob/main/api/applications.php) (Application actions), [`hr/interviews.php`](https://github.com/charlesmabhande/job_portal/blob/main/hr/interviews.php) (Interview scheduling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public recruitment"]
  node_job_browse["Browse jobs<br/>[index.php]"]
  node_job_details["Job details<br/>[job.php]"]
end

subgraph group_candidate["Candidate services"]
  node_registration["Registration<br/>[register.php]"]
  node_candidate_profile["Candidate profile<br/>[profile.php]"]
  node_profile_editor["Profile editor"]
  node_candidate_applications["Application tracking<br/>[applications.php]"]
  node_application_api["Application actions<br/>[applications.php]"]
  node_candidate_interviews["Interview details<br/>[interviews.php]"]
  node_candidate_documents["Candidate documents<br/>[my-document.php]"]
end

subgraph group_staff["Recruitment operations"]
  node_hr_jobs["Job management<br/>[jobs.php]"]
  node_hr_job_edit["Job editor<br/>[job_edit.php]"]
  node_job_approvals["Job approvals<br/>[jobs.php]"]
  node_hr_applications["Application review<br/>[applications.php]"]
  node_hr_interviews["Interview scheduling<br/>[interviews.php]"]
  node_staff_profiles["Candidate review"]
  node_api_jobs["Job actions<br/>[jobs.php]"]
  node_api_interviews["Interview actions<br/>[interviews.php]"]
end

subgraph group_admin["Administration"]
  node_user_admin["User management<br/>[users.php]"]
  node_security_admin["Security controls<br/>[security.php]"]
  node_audit_logs["Audit logs<br/>[logs.php]"]
  node_system_settings["System settings<br/>[settings.php]"]
end

subgraph group_core["Shared runtime"]
  node_auth["Authentication and roles<br/>[auth.php]"]
  node_config["Application configuration<br/>[config.php]"]
  node_email["Email notifications<br/>[email.php]"]
  node_database[("MySQL database<br/>[database.php]")]
  node_user_guide["User guidance<br/>[user-guide.php]"]
end

node_visitor(("Job seeker"))
node_candidate_actor(("Candidate"))
node_hr_actor(("HR staff"))
node_management_actor(("Management"))
node_admin_actor(("SysAdmin"))

node_visitor -->|"browses"| node_job_browse
node_job_browse -->|"opens details"| node_job_details
node_candidate_actor -->|"registers"| node_registration
node_candidate_actor -->|"maintains profile"| node_candidate_profile
node_candidate_profile -->|"renders editor"| node_profile_editor
node_candidate_actor -->|"manages documents"| node_candidate_documents
node_candidate_actor -->|"submits application"| node_application_api
node_application_api -->|"writes application"| node_database
node_application_api -->|"sends confirmation"| node_email
node_candidate_actor -->|"tracks applications"| node_candidate_applications
node_candidate_actor -->|"views interviews"| node_candidate_interviews
node_hr_actor -->|"manages jobs"| node_hr_jobs
node_hr_actor -->|"edits jobs"| node_hr_job_edit
node_hr_actor -->|"reviews applications"| node_hr_applications
node_hr_applications -->|"opens profile"| node_staff_profiles
node_hr_actor -->|"schedules interviews"| node_hr_interviews
node_hr_interviews -->|"notifies candidates"| node_email
node_hr_actor -->|"uses interview actions"| node_api_interviews
node_hr_actor -->|"uses job actions"| node_api_jobs
node_management_actor -->|"approves postings"| node_job_approvals
node_admin_actor -->|"administers accounts"| node_user_admin
node_admin_actor -->|"manages security"| node_security_admin
node_admin_actor -->|"views audit trail"| node_audit_logs
node_admin_actor -->|"updates settings"| node_system_settings
node_registration -->|"registers user"| node_auth
node_auth -.->|"accesses records"| node_database
node_config -->|"loads database config"| node_database
node_config -->|"loads helpers"| node_auth
node_config -->|"loads helpers"| node_email
node_job_approvals -->|"updates job status"| node_database
node_hr_interviews -->|"stores interviews"| node_database
node_candidate_actor -.->|"consults guidance"| node_user_guide

click node_job_browse "https://github.com/charlesmabhande/job_portal/blob/main/index.php"
click node_job_details "https://github.com/charlesmabhande/job_portal/blob/main/job.php"
click node_registration "https://github.com/charlesmabhande/job_portal/blob/main/register.php"
click node_candidate_profile "https://github.com/charlesmabhande/job_portal/blob/main/candidate/profile.php"
click node_profile_editor "https://github.com/charlesmabhande/job_portal/blob/main/candidate/profile_view_edit.php"
click node_candidate_applications "https://github.com/charlesmabhande/job_portal/blob/main/candidate/applications.php"
click node_application_api "https://github.com/charlesmabhande/job_portal/blob/main/api/applications.php"
click node_candidate_interviews "https://github.com/charlesmabhande/job_portal/blob/main/candidate/interviews.php"
click node_candidate_documents "https://github.com/charlesmabhande/job_portal/blob/main/candidate/my-document.php"
click node_hr_jobs "https://github.com/charlesmabhande/job_portal/blob/main/hr/jobs.php"
click node_hr_job_edit "https://github.com/charlesmabhande/job_portal/blob/main/hr/job_edit.php"
click node_job_approvals "https://github.com/charlesmabhande/job_portal/blob/main/management/jobs.php"
click node_hr_applications "https://github.com/charlesmabhande/job_portal/blob/main/hr/applications.php"
click node_hr_interviews "https://github.com/charlesmabhande/job_portal/blob/main/hr/interviews.php"
click node_staff_profiles "https://github.com/charlesmabhande/job_portal/blob/main/hr/candidate-profile.php"
click node_api_jobs "https://github.com/charlesmabhande/job_portal/blob/main/api/jobs.php"
click node_api_interviews "https://github.com/charlesmabhande/job_portal/blob/main/api/interviews.php"
click node_user_admin "https://github.com/charlesmabhande/job_portal/blob/main/admin/users.php"
click node_security_admin "https://github.com/charlesmabhande/job_portal/blob/main/admin/security.php"
click node_audit_logs "https://github.com/charlesmabhande/job_portal/blob/main/admin/logs.php"
click node_system_settings "https://github.com/charlesmabhande/job_portal/blob/main/admin/settings.php"
click node_auth "https://github.com/charlesmabhande/job_portal/blob/main/includes/auth.php"
click node_config "https://github.com/charlesmabhande/job_portal/blob/main/config/config.php"
click node_email "https://github.com/charlesmabhande/job_portal/blob/main/includes/email.php"
click node_database "https://github.com/charlesmabhande/job_portal/blob/main/config/database.php"
click node_user_guide "https://github.com/charlesmabhande/job_portal/blob/main/user-guide.php"

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_job_browse,node_job_details toneBlue
class node_registration,node_candidate_profile,node_profile_editor,node_candidate_applications,node_application_api,node_candidate_interviews,node_candidate_documents toneAmber
class node_hr_jobs,node_hr_job_edit,node_job_approvals,node_hr_applications,node_hr_interviews,node_staff_profiles,node_api_jobs,node_api_interviews toneMint
class node_user_admin,node_security_admin,node_audit_logs,node_system_settings toneRose
class node_auth,node_config,node_email,node_database,node_user_guide,node_visitor,node_candidate_actor,node_hr_actor,node_management_actor,node_admin_actor toneIndigo
```

## Components

### Public recruitment

- [Browse jobs](https://github.com/charlesmabhande/job_portal/blob/main/index.php): `index.php`
- [Job details](https://github.com/charlesmabhande/job_portal/blob/main/job.php): `job.php`

### Candidate services

- [Registration](https://github.com/charlesmabhande/job_portal/blob/main/register.php): `register.php`
- [Candidate profile](https://github.com/charlesmabhande/job_portal/blob/main/candidate/profile.php): `candidate/profile.php`
- [Profile editor](https://github.com/charlesmabhande/job_portal/blob/main/candidate/profile_view_edit.php): `candidate/profile_view_edit.php`
- [Application tracking](https://github.com/charlesmabhande/job_portal/blob/main/candidate/applications.php): `candidate/applications.php`
- [Application actions](https://github.com/charlesmabhande/job_portal/blob/main/api/applications.php): `api/applications.php`
- [Interview details](https://github.com/charlesmabhande/job_portal/blob/main/candidate/interviews.php): `candidate/interviews.php`
- [Candidate documents](https://github.com/charlesmabhande/job_portal/blob/main/candidate/my-document.php): `candidate/my-document.php`

### Recruitment operations

- [Job management](https://github.com/charlesmabhande/job_portal/blob/main/hr/jobs.php): `hr/jobs.php`
- [Job editor](https://github.com/charlesmabhande/job_portal/blob/main/hr/job_edit.php): `hr/job_edit.php`
- [Job approvals](https://github.com/charlesmabhande/job_portal/blob/main/management/jobs.php): `management/jobs.php`
- [Application review](https://github.com/charlesmabhande/job_portal/blob/main/hr/applications.php): `hr/applications.php`
- [Interview scheduling](https://github.com/charlesmabhande/job_portal/blob/main/hr/interviews.php): `hr/interviews.php`
- [Candidate review](https://github.com/charlesmabhande/job_portal/blob/main/hr/candidate-profile.php): `hr/candidate-profile.php`
- [Job actions](https://github.com/charlesmabhande/job_portal/blob/main/api/jobs.php): `api/jobs.php`
- [Interview actions](https://github.com/charlesmabhande/job_portal/blob/main/api/interviews.php): `api/interviews.php`

### Administration

- [User management](https://github.com/charlesmabhande/job_portal/blob/main/admin/users.php): `admin/users.php`
- [Security controls](https://github.com/charlesmabhande/job_portal/blob/main/admin/security.php): `admin/security.php`
- [Audit logs](https://github.com/charlesmabhande/job_portal/blob/main/admin/logs.php): `admin/logs.php`
- [System settings](https://github.com/charlesmabhande/job_portal/blob/main/admin/settings.php): `admin/settings.php`

### Shared runtime

- [Authentication and roles](https://github.com/charlesmabhande/job_portal/blob/main/includes/auth.php): `includes/auth.php`
- [Application configuration](https://github.com/charlesmabhande/job_portal/blob/main/config/config.php): `config/config.php`
- [Email notifications](https://github.com/charlesmabhande/job_portal/blob/main/includes/email.php): `includes/email.php`
- [MySQL database](https://github.com/charlesmabhande/job_portal/blob/main/config/database.php): `config/database.php`
- [User guidance](https://github.com/charlesmabhande/job_portal/blob/main/user-guide.php): `user-guide.php`

### Other components

- **Job seeker**
- **Candidate**
- **HR staff**
- **Management**
- **SysAdmin**

## Connections

- Job seeker → Browse jobs: browses
- Browse jobs → Job details: opens details (evidence: `index.php`)
- Candidate → Registration: registers
- Candidate → Candidate profile: maintains profile
- Candidate profile → Profile editor: renders editor (evidence: `candidate/profile.php`)
- Candidate → Candidate documents: manages documents
- Candidate → Application actions: submits application (evidence: `api/applications.php`)
- Application actions → MySQL database: writes application (evidence: `api/applications.php`)
- Application actions → Email notifications: sends confirmation (evidence: `api/applications.php`)
- Candidate → Application tracking: tracks applications
- Candidate → Interview details: views interviews
- HR staff → Job management: manages jobs
- HR staff → Job editor: edits jobs
- HR staff → Application review: reviews applications
- Application review → Candidate review: opens profile (evidence: `hr/applications.php`)
- HR staff → Interview scheduling: schedules interviews
- Interview scheduling → Email notifications: notifies candidates (evidence: `hr/interviews.php`)
- HR staff → Interview actions: uses interview actions
- HR staff → Job actions: uses job actions
- Management → Job approvals: approves postings
- SysAdmin → User management: administers accounts
- SysAdmin → Security controls: manages security
- SysAdmin → Audit logs: views audit trail
- SysAdmin → System settings: updates settings
- Registration → Authentication and roles: registers user
- Authentication and roles → MySQL database: accesses records
- Application configuration → MySQL database: loads database config (evidence: `config/config.php`)
- Application configuration → Authentication and roles: loads helpers (evidence: `config/config.php`)
- Application configuration → Email notifications: loads helpers (evidence: `config/config.php`)
- Job approvals → MySQL database: updates job status (evidence: `management/jobs.php`)
- Interview scheduling → MySQL database: stores interviews (evidence: `hr/interviews.php`)
- Candidate → User guidance: consults guidance
