How shubhamshubham66/dayflow_human_resource_ms works
Dayflow is a full-stack HR management system for employee and administrator workflows. Users enter through role-aware React routes, authenticate, and use dashboards and domain pages to manage profiles, attendance, leave, payroll, reports, and settings. The client API layer communicates with an Express API, whose route handlers operate on MongoDB-backed domain records. The README documents the major modules; detailed wiring is shown only where the supplied source supports it, so some unsampled page-to-service and route-to-controller links are omitted.
Main entry points: App.jsx Route and role access · Attendance.js HR records · index.js Express API · authController.js Auth handling
Components 25
Web application
- Route and role access
client/src/App.jsx - Auth context
client/src/context/AuthContext.jsx - Sign-in and enrollment
client/src/pages/SignIn.jsx - Role dashboards
client/src/pages/EmployeeDashboard.jsx - Attendance pages
client/src/pages/Attendance.jsx - Leave pages
client/src/pages/Leave.jsx - Payroll pages
client/src/pages/Payroll.jsx - Admin operations
client/src/pages/AttendanceManage.jsx - Reports and settings
client/src/pages/Reports.jsx - API client
client/src/services/api.js
API and identity
- Express API
server/index.js - Auth endpoints
server/routes/authRoutes.js - Auth handling
server/controllers/authController.js - Auth client service
client/src/services/authService.js
HR operations
- Employee handling
server/controllers/employeeController.js - Attendance handling
server/controllers/attendanceController.js - Leave endpoints
server/routes/leaveRoutes.js - Leave handling
server/controllers/leaveController.js - Payroll handling
server/controllers/payrollController.js - HR records
server/models/Attendance.js
Insights and support
- Analytics handling
server/controllers/analyticsController.js - Activity handling
server/controllers/activityController.js - Notification handling
server/controllers/notificationController.js - Email delivery
server/utils/sendEmail.js
Other components
- Employee / admin
Connections 25
- Employee / admin → Route and role access: uses
- Route and role access → Auth context: checks identity
- Route and role access → Sign-in and enrollment: routes
- Route and role access → Role dashboards: routes by role
- Route and role access → Attendance pages: routes
- Route and role access → Leave pages: routes
- Route and role access → Payroll pages: routes
- Route and role access → Admin operations: routes
- Route and role access → Reports and settings: routes
- Sign-in and enrollment → Auth client service: auth actions
- Auth client service → API client: sends requests
- API client → Express API: HTTP requests
- Express API → Auth endpoints: mounts
- Auth endpoints → Auth handling: dispatches
- Auth handling → HR records: reads/writes users
- Auth handling → Email delivery: sends email
- Express API → Leave endpoints: mounts
- Leave endpoints → Leave handling: dispatches
- Leave handling → HR records: reads/writes HR data
- Attendance handling → HR records: reads/writes attendance
- Attendance handling → Activity handling: creates activity
- Leave handling → Activity handling: creates activity
- Employee handling → HR records: reads/writes employee data
- Payroll handling → HR records: reads/writes payroll data
- Analytics handling → HR records: reads for analytics