How repplen/labour_module works
Employee App is a full-stack employee-operations system: users work through a React interface, which reaches an Express API backed by MongoDB. The documented capabilities span employee and master-data administration, attendance, checklists, complaints, polls, chat, permissions, and reports. The excerpts show the application’s route registration, checklist handling, authentication, and personal-task UI calls; many other feature branches are documented but their implementation wiring was not sampled, so those links are marked unverified.
Main entry points: dashboard.controller.js Dashboards and reports · app.js Express API · checklist.controller.js Checklist handlers · checklist.routes.js Checklist routes
Components 25
User interface
- React application
frontend/src/App.jsx - Personal task UI
frontend/src/hooks/personalTasks/useOwnTasks.js - Task API client
frontend/src/services/personalTask.service.js
API and access
- Express API
backend/app.js - JWT authentication
backend/middleware/auth.js - Permission checks
backend/middleware/permissions.js - Request validation
backend/middleware/validateRequest.js - Environment config
backend/config/env.js - Employee routes
backend/routes/employee.routes.js - Checklist routes
backend/routes/checklist.routes.js
Operations workflows
- Checklist handlers
backend/controllers/checklist.controller.js - Checklist workflow
backend/services/checklistWorkflow.service.js - Complaint management
backend/controllers/complaint.controller.js - Poll management
backend/controllers/poll.controller.js - Dashboards and reports
backend/controllers/dashboard.controller.js - Personal task service
backend/services/personalTask.service.js
MongoDB records
- Employee records
backend/models/Employee.js - User records
backend/models/User.js - Checklist records
backend/models/Checklist.js - Checklist task records
backend/models/ChecklistTask.js - Personal task records
backend/models/PersonalTask.js - Site records
backend/models/Site.js - Department records
backend/models/Department.js - Company records
backend/models/Company.js
Other components
- Employee user
Connections 34
- Employee user → React application: uses
README.md - React application → Express API: calls API
- React application → Personal task UI: routes to
frontend/src/App.jsx - Personal task UI → Task API client: calls
frontend/src/hooks/personalTasks/useOwnTasks.js - Express API → Environment config: loads config
backend/app.js - Express API → Employee routes: mounts
backend/app.js - Express API → Checklist routes: mounts
backend/app.js - Employee routes → JWT authentication: applies
backend/routes/employee.routes.js - Checklist routes → JWT authentication: applies
backend/routes/checklist.routes.js - Checklist routes → Permission checks: applies
backend/routes/checklist.routes.js - Checklist routes → Request validation: applies
backend/routes/checklist.routes.js - Checklist routes → Checklist handlers: dispatches
backend/routes/checklist.routes.js - JWT authentication → Environment config: reads secrets
backend/middleware/auth.js - JWT authentication → Employee records: loads principal
backend/middleware/auth.js - JWT authentication → User records: loads principal
backend/middleware/auth.js - Checklist handlers → Checklist records: reads and writes
backend/controllers/checklist.controller.js - Checklist handlers → Checklist task records: reads and writes
backend/controllers/checklist.controller.js - Checklist handlers → Checklist workflow: uses workflow
backend/controllers/checklist.controller.js - Checklist workflow → Checklist records: reads and writes
backend/services/checklistWorkflow.service.js - Checklist workflow → Checklist task records: creates tasks
backend/services/checklistWorkflow.service.js - Checklist handlers → Employee records: queries employees
backend/controllers/checklist.controller.js - Checklist handlers → Site records: queries sites
backend/controllers/checklist.controller.js - Dashboards and reports → Checklist records: queries
backend/controllers/dashboard.controller.js - Dashboards and reports → Checklist task records: queries
backend/controllers/dashboard.controller.js - Dashboards and reports → Employee records: queries
backend/controllers/dashboard.controller.js - Dashboards and reports → Personal task records: queries
backend/controllers/dashboard.controller.js - Dashboards and reports → Site records: queries
backend/controllers/dashboard.controller.js - Dashboards and reports → Department records: queries
backend/controllers/dashboard.controller.js - Dashboards and reports → Company records: queries
backend/controllers/dashboard.controller.js - Task API client → Personal task service: requests tasks
- Personal task service → Personal task records: reads and writes
backend/services/personalTask.service.js - Express API → Complaint management: exposes feature
- Express API → Poll management: exposes feature
- Express API → Dashboards and reports: exposes feature