How longnv2004/coffeechain-hrm works
Coffee HRM is a web-based workforce management system for coffee-store staff, managers, and administrators. Users sign in and work through role-specific dashboards to manage schedules, availability, attendance, recruitment, training, stores, and notifications. The source tree shows a Spring MVC application with controllers, services, repositories, and database-backed entities; the supplied excerpts do not show most server-side calls or page routing, so those relationships are left unverified. The sampled training script explicitly consults the Vietnam-time helper when validating class times.
Main entry points: controller Web controllers · repository Repositories · templates Role pages · TrainingServiceImpl.java Training
Components 21
Web experience
- Role pages
src/main/resources/templates - Login form
src/main/resources/static/js/LandingPage.js - Dashboards
src/main/resources/static/js/AdminDashboard.js - Notification popup
src/main/resources/static/js/notifications-popup.js - Vietnam time helper
src/main/resources/static/js/vietnam-time.js
Workforce operations
- Scheduling
src/main/java/com/example/coffee_hrm/service/impl/ScheduleServiceImpl.java - Availability
src/main/java/com/example/coffee_hrm/service/impl/StaffAvailabilityServiceImpl.java - Attendance history
src/main/java/com/example/coffee_hrm/service/impl/AttendanceHistoryServiceImpl.java - Employee management
src/main/java/com/example/coffee_hrm/service/impl/EmployeeServiceImpl.java - Store management
src/main/java/com/example/coffee_hrm/service/impl/StoreServiceImpl.java
Training and hiring
- Training
src/main/java/com/example/coffee_hrm/service/impl/TrainingServiceImpl.java - Training interactions
src/main/resources/static/js/Training.js - Recruitment requests
src/main/java/com/example/coffee_hrm/service/impl/RecruitmentRequestServiceImpl.java
Application services
- Authentication
src/main/java/com/example/coffee_hrm/service/impl/AuthServiceImpl.java - Notification service
src/main/java/com/example/coffee_hrm/service/impl/NotificationServiceImpl.java - Web controllers
src/main/java/com/example/coffee_hrm/controller - Repositories
src/main/java/com/example/coffee_hrm/repository - Application database
src/main/java/com/example/coffee_hrm/entity
Other components
- Staff
- Manager
- Administrator
Connections 27
- Staff → Role pages: uses
- Manager → Role pages: uses
- Administrator → Role pages: uses
- Login form → Authentication: submits login
- Role pages → Web controllers: routes to
- Dashboards → Role pages: supports views
- Training interactions → Vietnam time helper: checks time
src/main/resources/static/js/Training.js - Training interactions → Training: submits changes
- Notification popup → Notification service: loads and updates
- Web controllers → Scheduling: dispatches requests
- Web controllers → Availability: dispatches requests
- Web controllers → Attendance history: dispatches requests
- Web controllers → Employee management: dispatches requests
- Web controllers → Store management: dispatches requests
- Web controllers → Training: dispatches requests
- Web controllers → Recruitment requests: dispatches requests
- Web controllers → Authentication: dispatches requests
- Scheduling → Repositories: persists data
- Availability → Repositories: persists data
- Attendance history → Repositories: reads data
- Employee management → Repositories: persists data
- Store management → Repositories: persists data
- Training → Repositories: persists data
- Recruitment requests → Repositories: persists data
- Authentication → Repositories: reads data
- Notification service → Repositories: persists data
- Repositories → Application database: accesses