How nishanth6153/humano works
Dayflow is an employee-management application for HR, administrators, and employees. Users sign in and are routed to role-specific pages for employee profiles, attendance, leave, and payroll; the frontend services make API requests to an Express backend, whose domain services access data through Prisma. The graph preserves these major product areas. Some frontend-to-backend links are dashed because the excerpts do not establish the complete HTTP wiring for each domain.
Main entry points: app.ts API application · prisma.ts Prisma data access · App.tsx Role-based app · authenticate.ts Authentication and roles
Components 19
Web application
- Role-based app
frontend/src/App.tsx - Session context
frontend/src/context/AuthContext.tsx - API client
frontend/src/api/client.ts - Sign-in service
frontend/src/services/auth.service.ts - People pages
frontend/src/pages - Attendance pages
frontend/src/pages - Leave pages
frontend/src/pages - Payroll pages
frontend/src/pages
Identity and access
- API application
backend/src/app.ts - Authentication API
backend/src/auth - Authentication and roles
backend/src/middleware/authenticate.ts
Employee management
- Employee API
backend/src/employees - Prisma data access
backend/src/config/prisma.ts - Application database
Workforce operations
- Attendance API
backend/src/attendance - Time-off API
backend/src/timeoff
Compensation and insights
- Salary API
backend/src/salary - Dashboard analytics
backend/src/dashboard
Other components
- HR and employees
Connections 32
- HR and employees → Role-based app: use
frontend/src/App.tsx - Role-based app → Session context: provides session
frontend/src/App.tsx - Role-based app → People pages: routes to
frontend/src/App.tsx - Role-based app → Attendance pages: routes to
frontend/src/App.tsx - Role-based app → Leave pages: routes to
frontend/src/App.tsx - Role-based app → Payroll pages: routes to
frontend/src/App.tsx - Session context → Sign-in service: uses
frontend/src/context/AuthContext.tsx - Sign-in service → API client: requests
frontend/src/services/auth.service.ts - API client → API application: sends API requests
- API application → Authentication API: mounts routes
backend/src/app.ts - API application → Employee API: mounts routes
backend/src/app.ts - API application → Attendance API: mounts routes
backend/src/app.ts - API application → Time-off API: mounts routes
backend/src/app.ts - API application → Salary API: mounts routes
backend/src/app.ts - API application → Dashboard analytics: mounts routes
backend/src/app.ts - Authentication API → Authentication and roles: protects routes
backend/src/auth/auth.routes.ts - Employee API → Authentication and roles: protects routes
backend/src/employees/employee.routes.ts - Attendance API → Authentication and roles: protects routes
backend/src/attendance/attendance.routes.ts - Time-off API → Authentication and roles: protects routes
backend/src/timeoff/timeoff.routes.ts - Salary API → Authentication and roles: protects routes
backend/src/salary/salary.routes.ts - Dashboard analytics → Authentication and roles: protects routes
backend/src/dashboard/dashboard.routes.ts - Authentication API → Prisma data access: reads user records
backend/src/auth/auth.service.ts - Employee API → Prisma data access: accesses records
backend/src/employees/employee.service.ts - Attendance API → Prisma data access: accesses records
backend/src/attendance/attendance.service.ts - Time-off API → Prisma data access: accesses records
backend/src/timeoff/timeoff.service.ts - Salary API → Prisma data access: accesses records
backend/src/salary/salary.service.ts - Dashboard analytics → Prisma data access: queries metrics
backend/src/dashboard/dashboard.service.ts - Prisma data access → Application database: reads and writes
- People pages → Employee API: uses API
- Attendance pages → Attendance API: uses API
- Leave pages → Time-off API: uses API
- Payroll pages → Salary API: uses API