# kishoremuddana/hrms-mediatize architecture

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

- Interactive diagram: https://gitdiagram.com/kishoremuddana/hrms-mediatize
- Repository: https://github.com/kishoremuddana/hrms-mediatize

## Overview

This repository implements an HRMS web application: employees and HR users sign in, enter role-specific dashboards, and use modules for workforce administration, attendance, leave, projects, announcements, work reports, complaints, performance, notifications, and audit history. The frontend routes users to feature pages; the FastAPI application registers corresponding API routers. Service-layer cross-module calls are included only where the SOURCE INDEX supports them. Many page-to-API and router-to-service links are not shown in the excerpts, so those relationships are omitted.

Main entry points: [`frontend/src/App.jsx`](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/App.jsx) (Web routes), [`backend/app/main.py`](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/main.py) (API registration), [`backend/app/audit_service/service.py`](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/audit_service/service.py) (Audit history), [`backend/app/performance_service/service.py`](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/performance_service/service.py) (Performance reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_webapp["Web routes<br/>[App.jsx]"]
  node_api["API registration<br/>[main.py]"]
end

subgraph group_identity["Identity and shared services"]
  node_authui["Login and dashboards<br/>[Login.jsx]"]
  node_authservice["Authentication service<br/>[service.py]"]
  node_authdata[("User accounts<br/>[models.py]")]
  node_database[("Database sessions<br/>[database.py]")]
  node_email["Email delivery<br/>[service.py]"]
  node_cloudinary["Media storage<br/>[service.py]"]
end

subgraph group_workforce["Workforce operations"]
  node_employees["Employee management<br/>[service.py]"]
  node_attendance["Attendance<br/>[service.py]"]
  node_leave["Leave management<br/>[service.py]"]
  node_projects["Project management<br/>[service.py]"]
  node_employeeui["Employee pages<br/>[EmployeeList.jsx]"]
  node_attendanceui["Attendance pages<br/>[Attendance.jsx]"]
  node_leaveui["Leave pages<br/>[Leave.jsx]"]
  node_projectui["Project pages"]
end

subgraph group_collaboration["Work and communication"]
  node_announcements["Announcements<br/>[service.py]"]
  node_workreports["Work reports<br/>[service.py]"]
  node_complaints["Complaints<br/>[service.py]"]
  node_notifications["Notifications<br/>[service.py]"]
  node_announcementui["Announcement pages"]
  node_reportui["Work report pages<br/>[MyWorkReports.jsx]"]
  node_complaintui["Complaint pages<br/>[MyComplaints.jsx]"]
  node_notificationui["Notification interface"]
end

subgraph group_oversight["Performance and oversight"]
  node_performance["Performance reviews<br/>[service.py]"]
  node_audit["Audit history<br/>[service.py]"]
  node_performanceui["Performance pages<br/>[MyPerformance.jsx]"]
  node_auditui["Audit logs page<br/>[AuditLogs.jsx]"]
end

node_users(("HR / Employee"))

node_users -->|"opens"| node_webapp
node_webapp -->|"routes to"| node_authui
node_webapp -->|"routes to"| node_employeeui
node_webapp -->|"routes to"| node_attendanceui
node_webapp -->|"routes to"| node_leaveui
node_webapp -->|"routes to"| node_projectui
node_webapp -.->|"routes to"| node_announcementui
node_webapp -.->|"routes to"| node_reportui
node_webapp -.->|"routes to"| node_complaintui
node_webapp -.->|"routes to"| node_notificationui
node_webapp -->|"routes to"| node_performanceui
node_webapp -.->|"routes to"| node_auditui
node_authui -.->|"authenticates via"| node_authservice
node_api -->|"registers router"| node_authservice
node_api -->|"registers router"| node_employees
node_api -->|"registers router"| node_attendance
node_api -->|"registers router"| node_leave
node_api -->|"registers router"| node_projects
node_api -->|"registers router"| node_announcements
node_api -->|"registers router"| node_workreports
node_api -->|"registers router"| node_complaints
node_api -->|"registers router"| node_notifications
node_api -->|"registers router"| node_performance
node_api -->|"registers router"| node_audit
node_employees -->|"sends email"| node_email
node_leave -->|"sends email"| node_email
node_leave -->|"creates notifications"| node_notifications
node_announcements -->|"creates notifications"| node_notifications
node_complaints -->|"creates notifications"| node_notifications
node_projects -->|"sends email"| node_email
node_performance -->|"creates notifications"| node_notifications
node_performance -->|"reads attendance"| node_attendance
node_performance -->|"reads projects"| node_projects
node_performance -->|"reads reports"| node_workreports
node_workreports -->|"uploads media"| node_cloudinary
node_complaints -->|"uploads media"| node_cloudinary
node_attendance -->|"records actions"| node_audit
node_leave -->|"records actions"| node_audit
node_employees -->|"records actions"| node_audit
node_projects -.->|"records actions"| node_audit
node_announcements -->|"records actions"| node_audit
node_performance -->|"records actions"| node_audit
node_workreports -->|"records actions"| node_audit
node_complaints -->|"records actions"| node_audit
node_authservice -->|"uses account model"| node_authdata
node_authdata -->|"uses base"| node_database
node_employees -.->|"uses sessions"| node_database
node_attendance -.->|"uses sessions"| node_database

click node_webapp "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/App.jsx"
click node_api "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/main.py"
click node_authui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/authentication_service/pages/Login.jsx"
click node_authservice "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/authentication_service/service.py"
click node_authdata "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/authentication_service/models.py"
click node_employees "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/employee_service/service.py"
click node_attendance "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/attendance_service/service.py"
click node_leave "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/leave_service/service.py"
click node_projects "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/project_service/service.py"
click node_announcements "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/announcement_service/service.py"
click node_workreports "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/work_report_service/service.py"
click node_complaints "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/complaint_service/service.py"
click node_notifications "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/notification_service/service.py"
click node_performance "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/performance_service/service.py"
click node_audit "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/audit_service/service.py"
click node_database "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/core/database.py"
click node_email "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/email_service/service.py"
click node_cloudinary "https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/cloudinary_service/service.py"
click node_employeeui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/employee_service/pages/EmployeeList.jsx"
click node_attendanceui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/attendance_service/pages/Attendance.jsx"
click node_leaveui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/leave_service/pages/Leave.jsx"
click node_projectui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/project_service/pages/HRProjectDashboard.jsx"
click node_announcementui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/announcement_service/components/HRAnnouncements.jsx"
click node_reportui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/work_report_service/pages/MyWorkReports.jsx"
click node_complaintui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/complaint_service/pages/MyComplaints.jsx"
click node_notificationui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/notification_service/components/NotificationBell.jsx"
click node_performanceui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/performance_service/pages/MyPerformance.jsx"
click node_auditui "https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/audit_service/pages/AuditLogs.jsx"

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_webapp,node_api toneBlue
class node_authui,node_authservice,node_authdata,node_database,node_email,node_cloudinary toneAmber
class node_employees,node_attendance,node_leave,node_projects,node_employeeui,node_attendanceui,node_leaveui,node_projectui toneMint
class node_announcements,node_workreports,node_complaints,node_notifications,node_announcementui,node_reportui,node_complaintui,node_notificationui toneRose
class node_performance,node_audit,node_performanceui,node_auditui,node_users toneIndigo
```

## Components

### Application entry

- [Web routes](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [API registration](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/main.py): `backend/app/main.py`

### Identity and shared services

- [Login and dashboards](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/authentication_service/pages/Login.jsx): `frontend/src/authentication_service/pages/Login.jsx`
- [Authentication service](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/authentication_service/service.py): `backend/app/authentication_service/service.py`
- [User accounts](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/authentication_service/models.py): `backend/app/authentication_service/models.py`
- [Database sessions](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/core/database.py): `backend/app/core/database.py`
- [Email delivery](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/email_service/service.py): `backend/app/email_service/service.py`
- [Media storage](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/cloudinary_service/service.py): `backend/app/cloudinary_service/service.py`

### Workforce operations

- [Employee management](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/employee_service/service.py): `backend/app/employee_service/service.py`
- [Attendance](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/attendance_service/service.py): `backend/app/attendance_service/service.py`
- [Leave management](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/leave_service/service.py): `backend/app/leave_service/service.py`
- [Project management](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/project_service/service.py): `backend/app/project_service/service.py`
- [Employee pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/employee_service/pages/EmployeeList.jsx): `frontend/src/employee_service/pages/EmployeeList.jsx`
- [Attendance pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/attendance_service/pages/Attendance.jsx): `frontend/src/attendance_service/pages/Attendance.jsx`
- [Leave pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/leave_service/pages/Leave.jsx): `frontend/src/leave_service/pages/Leave.jsx`
- [Project pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/project_service/pages/HRProjectDashboard.jsx): `frontend/src/project_service/pages/HRProjectDashboard.jsx`

### Work and communication

- [Announcements](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/announcement_service/service.py): `backend/app/announcement_service/service.py`
- [Work reports](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/work_report_service/service.py): `backend/app/work_report_service/service.py`
- [Complaints](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/complaint_service/service.py): `backend/app/complaint_service/service.py`
- [Notifications](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/notification_service/service.py): `backend/app/notification_service/service.py`
- [Announcement pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/announcement_service/components/HRAnnouncements.jsx): `frontend/src/announcement_service/components/HRAnnouncements.jsx`
- [Work report pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/work_report_service/pages/MyWorkReports.jsx): `frontend/src/work_report_service/pages/MyWorkReports.jsx`
- [Complaint pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/complaint_service/pages/MyComplaints.jsx): `frontend/src/complaint_service/pages/MyComplaints.jsx`
- [Notification interface](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/notification_service/components/NotificationBell.jsx): `frontend/src/notification_service/components/NotificationBell.jsx`

### Performance and oversight

- [Performance reviews](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/performance_service/service.py): `backend/app/performance_service/service.py`
- [Audit history](https://github.com/kishoremuddana/hrms-mediatize/blob/main/backend/app/audit_service/service.py): `backend/app/audit_service/service.py`
- [Performance pages](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/performance_service/pages/MyPerformance.jsx): `frontend/src/performance_service/pages/MyPerformance.jsx`
- [Audit logs page](https://github.com/kishoremuddana/hrms-mediatize/blob/main/frontend/src/audit_service/pages/AuditLogs.jsx): `frontend/src/audit_service/pages/AuditLogs.jsx`

### Other components

- **HR / Employee**

## Connections

- HR / Employee → Web routes: opens (evidence: `frontend/src/App.jsx`)
- Web routes → Login and dashboards: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Employee pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Attendance pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Leave pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Project pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Announcement pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Work report pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Complaint pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Notification interface: routes to
- Web routes → Performance pages: routes to (evidence: `frontend/src/App.jsx`)
- Web routes → Audit logs page: routes to (evidence: `frontend/src/App.jsx`)
- Login and dashboards → Authentication service: authenticates via
- API registration → Authentication service: registers router (evidence: `backend/app/main.py`)
- API registration → Employee management: registers router (evidence: `backend/app/main.py`)
- API registration → Attendance: registers router (evidence: `backend/app/main.py`)
- API registration → Leave management: registers router (evidence: `backend/app/main.py`)
- API registration → Project management: registers router (evidence: `backend/app/main.py`)
- API registration → Announcements: registers router (evidence: `backend/app/main.py`)
- API registration → Work reports: registers router (evidence: `backend/app/main.py`)
- API registration → Complaints: registers router (evidence: `backend/app/main.py`)
- API registration → Notifications: registers router (evidence: `backend/app/main.py`)
- API registration → Performance reviews: registers router (evidence: `backend/app/main.py`)
- API registration → Audit history: registers router (evidence: `backend/app/main.py`)
- Employee management → Email delivery: sends email (evidence: `backend/app/employee_service/service.py`)
- Leave management → Email delivery: sends email (evidence: `backend/app/leave_service/service.py`)
- Leave management → Notifications: creates notifications (evidence: `backend/app/leave_service/service.py`)
- Announcements → Notifications: creates notifications (evidence: `backend/app/announcement_service/service.py`)
- Complaints → Notifications: creates notifications (evidence: `backend/app/complaint_service/service.py`)
- Project management → Email delivery: sends email (evidence: `backend/app/project_service/service.py`)
- Performance reviews → Notifications: creates notifications (evidence: `backend/app/performance_service/service.py`)
- Performance reviews → Attendance: reads attendance (evidence: `backend/app/performance_service/service.py`)
- Performance reviews → Project management: reads projects (evidence: `backend/app/performance_service/service.py`)
- Performance reviews → Work reports: reads reports (evidence: `backend/app/performance_service/service.py`)
- Work reports → Media storage: uploads media (evidence: `backend/app/work_report_service/service.py`)
- Complaints → Media storage: uploads media (evidence: `backend/app/complaint_service/service.py`)
- Attendance → Audit history: records actions (evidence: `backend/app/attendance_service/service.py`)
- Leave management → Audit history: records actions (evidence: `backend/app/leave_service/service.py`)
- Employee management → Audit history: records actions (evidence: `backend/app/employee_service/service.py`)
- Project management → Audit history: records actions
- Announcements → Audit history: records actions (evidence: `backend/app/announcement_service/service.py`)
- Performance reviews → Audit history: records actions (evidence: `backend/app/performance_service/service.py`)
- Work reports → Audit history: records actions (evidence: `backend/app/work_report_service/service.py`)
- Complaints → Audit history: records actions (evidence: `backend/app/complaint_service/service.py`)
- Authentication service → User accounts: uses account model (evidence: `backend/app/authentication_service/models.py`)
- User accounts → Database sessions: uses base (evidence: `backend/app/authentication_service/models.py`)
- Employee management → Database sessions: uses sessions
- Attendance → Database sessions: uses sessions
