How abdul8704/hrms-zuntra works
This is a workforce-management web application spanning employee and role administration, attendance and leave, project delivery, learning, and company documents. Users enter through the browser’s routed pages, authenticate, and use those workflows; the client sends API requests to an Express server, whose routes dispatch to controllers and services that operate on MongoDB models. The sampled source supports several server-side call chains and client routes. Frontend-to-feature API pairings are not fully visible, so those links are shown as unverified rather than inferred as direct calls.
Main entry points: App.jsx Route shell · EmployeeManagement.jsx Employee admin · server.js Express API · attendanceService.js Attendance and leave
Components 25
Web client
- Route shell
client/src/App.jsx - Session context
client/src/context/AuthContext.jsx - Login
client/src/pages/Login.jsx - HTTP client
client/src/api/axios.js - Employee admin
client/src/pages/employee/EmployeeManagement.jsx - Role editing
client/src/pages/employee/components/EditRolePopup.jsx - Employee removal
client/src/pages/employee/components/RemoveEmployeePopup.jsx - Course management
client/src/pages/course/CourseManagement.jsx - Team leadership
client/src/pages/teams/TeamLeader.jsx - Loading state
client/src/pages/utils/Loading.jsx
API server
- Express API
server/server.js - Employee routes
server/src/routes/employeeRoutes.js - Course routes
server/src/routes/courseRoutes.js - Phase routes
server/src/routes/projectRoutes/phaseRoutes.js
People and attendance
- Employee controller
server/src/controllers/employeeController.js - Attendance and leave
server/src/services/attendanceService.js - Attendance calculations
server/src/utils/attendanceHelper.js - Attendance records
server/src/models/attendanceManagement/attendance.js
Project delivery
- Phase controller
server/src/controllers/projectControllers/phaseController.js - Phase operations
server/src/services/projectService/phaseService.js - Team operations
server/src/services/projectService/teamService.js - Phase records
server/src/models/projectManagement/phase.js
Learning and documents
- Course controller
server/src/controllers/courseController.js - Course operations
server/src/services/courseService.js
Other components
- Employee or HR
Connections 25
- Employee or HR → Route shell: opens
client/src/App.jsx - Route shell → Login: routes to
client/src/App.jsx - Route shell → Employee admin: routes to
client/src/App.jsx - Route shell → Course management: routes to
client/src/App.jsx - Route shell → Team leadership: routes to
client/src/App.jsx - Route shell → Session context: wraps routes
client/src/App.jsx - Session context → HTTP client: fetches session
client/src/context/AuthContext.jsx - Employee admin → Role editing: renders
client/src/pages/employee/EmployeeManagement.jsx - Employee admin → Employee removal: renders
client/src/pages/employee/EmployeeManagement.jsx - Employee admin → Loading state: renders
client/src/pages/employee/EmployeeManagement.jsx - Course management → Loading state: renders
client/src/pages/course/CourseManagement.jsx - HTTP client → Express API: sends requests
- Express API → Employee routes: mounts
server/server.js - Express API → Course routes: mounts
server/server.js - Express API → Phase routes: mounts
server/server.js - Employee routes → Employee controller: dispatches to
server/src/routes/employeeRoutes.js - Course routes → Course controller: dispatches to
server/src/routes/courseRoutes.js - Phase routes → Phase controller: dispatches to
server/src/routes/projectRoutes/phaseRoutes.js - Employee controller → Attendance and leave: calls
server/src/controllers/employeeController.js - Attendance and leave → Attendance calculations: uses
server/src/services/attendanceService.js - Attendance and leave → Attendance records: reads and writes
server/src/services/attendanceService.js - Phase controller → Phase operations: calls
server/src/controllers/projectControllers/phaseController.js - Phase operations → Phase records: reads and writes
server/src/services/projectService/phaseService.js - Phase operations → Team operations: delegates to
server/src/services/projectService/phaseService.js - Course controller → Course operations: calls
server/src/controllers/courseController.js