# zekiroh/hris-system architecture

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

## Overview

This is a human-resources information system: web and mobile clients sit alongside an ASP.NET Core API backed by EF Core and MySQL. The principal workflow is an employee or administrator using the web application to reach a protected feature, which invokes an API controller and its domain service to manage HR records. Distinct capabilities include employee records, attendance and overtime, leave, payroll, compliance, assets, clearance, announcements, and performance. The excerpts show selected controller-to-service calls and route dispatch; many other service internals and client-to-API calls were not sampled, so those links are omitted or marked unverified.

Main entry points: [`apps/api/HRIS.Api/Program.cs`](https://github.com/zekiroh/hris-system/blob/main/apps/api/HRIS.Api/Program.cs) (ASP.NET API), [`apps/api/HRIS.Api/Data/AppDbContext.cs`](https://github.com/zekiroh/hris-system/blob/main/apps/api/HRIS.Api/Data/AppDbContext.cs) (HR data store), [`apps/web/src`](https://github.com/zekiroh/hris-system/tree/main/apps/web/src) (Web application), [`apps/web/src/app/routes/AppRoutes.tsx`](https://github.com/zekiroh/hris-system/blob/main/apps/web/src/app/routes/AppRoutes.tsx) (Protected routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Client applications"]
  node_web["Web application"]
  node_mobile["Mobile application"]
  node_routes["Protected routes<br/>[AppRoutes.tsx]"]
  node_employee_ui["Employee records UI"]
  node_attendance_ui["Attendance UI"]
end

subgraph group_people["People operations"]
  node_iam["Identity and access<br/>[IAM]"]
  node_employees["Employee records<br/>[Employees]"]
  node_announcements["Announcements"]
  node_performance["Performance reviews"]
  node_clearance["Employee clearance"]
end

subgraph group_work["Workforce operations"]
  node_attendance["Attendance and shifts<br/>[Attendance]"]
  node_leave["Leave management<br/>[LeaveManagement]"]
  node_assets["Asset management<br/>[AssetManagement]"]
end

subgraph group_comp["Compensation and compliance"]
  node_payroll["Payroll processing<br/>[Payroll]"]
  node_compliance["Government compliance"]
  node_dashboard["Dashboard reporting<br/>[Dashboard]"]
end

subgraph group_platform["API and persistence"]
  node_api["ASP.NET API<br/>[Program.cs]"]
  node_database[("HR data store<br/>[AppDbContext.cs]")]
end

node_employee(("Employee user"))
node_admin(("HR administrator"))

node_employee -.->|"uses"| node_web
node_admin -.->|"uses"| node_web
node_web -.->|"renders"| node_routes
node_routes -->|"routes to"| node_employee_ui
node_routes -->|"routes to"| node_attendance_ui
node_employee_ui -.->|"requests data"| node_employees
node_attendance_ui -.->|"requests data"| node_attendance
node_web -.->|"calls"| node_api
node_mobile -.->|"calls"| node_api
node_api -.->|"dispatches"| node_employees
node_api -.->|"dispatches"| node_iam
node_api -.->|"dispatches"| node_announcements
node_api -.->|"dispatches"| node_attendance
node_api -.->|"dispatches"| node_leave
node_api -.->|"dispatches"| node_assets
node_api -.->|"dispatches"| node_clearance
node_api -.->|"dispatches"| node_payroll
node_api -.->|"dispatches"| node_compliance
node_api -.->|"dispatches"| node_performance
node_api -.->|"dispatches"| node_dashboard
node_employees -.->|"reads/writes"| node_database
node_attendance -.->|"reads/writes"| node_database
node_leave -.->|"reads/writes"| node_database
node_assets -.->|"reads/writes"| node_database
node_payroll -.->|"reads/writes"| node_database
node_compliance -.->|"reads/writes"| node_database
node_clearance -.->|"reads/writes"| node_database

click node_web "https://github.com/zekiroh/hris-system/tree/main/apps/web/src"
click node_mobile "https://github.com/zekiroh/hris-system/tree/main/apps/mobile/app"
click node_routes "https://github.com/zekiroh/hris-system/blob/main/apps/web/src/app/routes/AppRoutes.tsx"
click node_employee_ui "https://github.com/zekiroh/hris-system/tree/main/apps/web/src/features/employees"
click node_attendance_ui "https://github.com/zekiroh/hris-system/tree/main/apps/web/src/features/attendance"
click node_iam "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/IAM"
click node_employees "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Employees"
click node_announcements "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/AnnouncementManagement"
click node_performance "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/PerformanceManagement"
click node_clearance "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/ClearanceManagement"
click node_attendance "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Attendance"
click node_leave "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/LeaveManagement"
click node_assets "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/AssetManagement"
click node_payroll "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Payroll"
click node_compliance "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/GovernmentCompliance"
click node_dashboard "https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Dashboard"
click node_api "https://github.com/zekiroh/hris-system/blob/main/apps/api/HRIS.Api/Program.cs"
click node_database "https://github.com/zekiroh/hris-system/blob/main/apps/api/HRIS.Api/Data/AppDbContext.cs"

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_web,node_mobile,node_routes,node_employee_ui,node_attendance_ui,node_employee toneBlue
class node_iam,node_employees,node_announcements,node_performance,node_clearance toneAmber
class node_attendance,node_leave,node_assets toneMint
class node_payroll,node_compliance,node_dashboard toneRose
class node_api,node_database,node_admin toneIndigo
```

## Components

### Client applications

- [Web application](https://github.com/zekiroh/hris-system/tree/main/apps/web/src): `apps/web/src`
- [Mobile application](https://github.com/zekiroh/hris-system/tree/main/apps/mobile/app): `apps/mobile/app`
- [Protected routes](https://github.com/zekiroh/hris-system/blob/main/apps/web/src/app/routes/AppRoutes.tsx): `apps/web/src/app/routes/AppRoutes.tsx`
- [Employee records UI](https://github.com/zekiroh/hris-system/tree/main/apps/web/src/features/employees): `apps/web/src/features/employees`
- [Attendance UI](https://github.com/zekiroh/hris-system/tree/main/apps/web/src/features/attendance): `apps/web/src/features/attendance`

### People operations

- [Identity and access](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/IAM): `apps/api/HRIS.Api/Features/IAM`
- [Employee records](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Employees): `apps/api/HRIS.Api/Features/Employees`
- [Announcements](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/AnnouncementManagement): `apps/api/HRIS.Api/Features/AnnouncementManagement`
- [Performance reviews](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/PerformanceManagement): `apps/api/HRIS.Api/Features/PerformanceManagement`
- [Employee clearance](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/ClearanceManagement): `apps/api/HRIS.Api/Features/ClearanceManagement`

### Workforce operations

- [Attendance and shifts](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Attendance): `apps/api/HRIS.Api/Features/Attendance`
- [Leave management](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/LeaveManagement): `apps/api/HRIS.Api/Features/LeaveManagement`
- [Asset management](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/AssetManagement): `apps/api/HRIS.Api/Features/AssetManagement`

### Compensation and compliance

- [Payroll processing](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Payroll): `apps/api/HRIS.Api/Features/Payroll`
- [Government compliance](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/GovernmentCompliance): `apps/api/HRIS.Api/Features/GovernmentCompliance`
- [Dashboard reporting](https://github.com/zekiroh/hris-system/tree/main/apps/api/HRIS.Api/Features/Dashboard): `apps/api/HRIS.Api/Features/Dashboard`

### API and persistence

- [ASP.NET API](https://github.com/zekiroh/hris-system/blob/main/apps/api/HRIS.Api/Program.cs): `apps/api/HRIS.Api/Program.cs`
- [HR data store](https://github.com/zekiroh/hris-system/blob/main/apps/api/HRIS.Api/Data/AppDbContext.cs): `apps/api/HRIS.Api/Data/AppDbContext.cs`

### Other components

- **Employee user**
- **HR administrator**

## Connections

- Employee user → Web application: uses
- HR administrator → Web application: uses
- Web application → Protected routes: renders (evidence: `apps/web/src/app/routes/AppRoutes.tsx`)
- Protected routes → Employee records UI: routes to (evidence: `apps/web/src/app/routes/AppRoutes.tsx`)
- Protected routes → Attendance UI: routes to (evidence: `apps/web/src/app/routes/AppRoutes.tsx`)
- Employee records UI → Employee records: requests data
- Attendance UI → Attendance and shifts: requests data
- Web application → ASP.NET API: calls
- Mobile application → ASP.NET API: calls
- ASP.NET API → Employee records: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Identity and access: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Announcements: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Attendance and shifts: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Leave management: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Asset management: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Employee clearance: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Payroll processing: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Government compliance: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Performance reviews: dispatches (evidence: `apps/api/HRIS.Api/Program.cs`)
- ASP.NET API → Dashboard reporting: dispatches
- Employee records → HR data store: reads/writes (evidence: `apps/api/HRIS.Api/Features/Employees/Services/EmployeesService.cs`)
- Attendance and shifts → HR data store: reads/writes (evidence: `apps/api/HRIS.Api/Features/Attendance/Services/OvertimeRequestService.cs`)
- Leave management → HR data store: reads/writes
- Asset management → HR data store: reads/writes
- Payroll processing → HR data store: reads/writes
- Government compliance → HR data store: reads/writes
- Employee clearance → HR data store: reads/writes
