How jrdimazana/sinalab_garden_management_system works
This is a cafeteria ordering and operations application: customers place dine-in or take-out orders, staff manage the order queue, and an attendance interface supports employee check-in workflows. The frontend routes users into cashier, queue, and attendance screens; the backend exposes cashier and queue APIs, with employee API modules also present. Checkout validates and persists orders, creates a queue entry, logs the transaction, and clears the cart. Attendance and employee-management links are only partially evidenced, so those connections are omitted where wiring is not shown.
Main entry points: App.jsx Route selection · Attendance.jsx Attendance screen · db.js MySQL pool · app.js Express application
Components 23
Staff and customer UI
- Route selection
frontend/src/App.jsx - Cashier ordering
frontend/src/pages/orderingSystem.jsx - Queue screen
frontend/src/pages/QueuingPage.jsx - Order controls
frontend/src/components/OrderContainer.jsx - Attendance screen
frontend/src/pages/Attendance.jsx - Attendance controls
frontend/src/components/AttendanceContainer.jsx - Staff login
frontend/src/components/LoginContainer.jsx - QR registration
frontend/src/components/QRRegistrationContainer.jsx
HTTP API
- Express application
backend/app.js - Cashier routes
backend/routes/cashierRoutes.js - Queue routes
backend/routes/queueRoutes.js - Cashier controller
backend/controllers/cashierController.js - Queue controller
backend/controllers/queueController.js - Employee routes
backend/routes/employeeRoutes.js - Employee controller
backend/controllers/employeeController.js
Order and employee services
- Checkout and cart
backend/services/cashierServices.js - Queue operations
backend/services/queueService.js - Employee operations
backend/services/employeeService.js
Persistence
- Order data access
backend/models/cashierModel.js - Queue data access
backend/models/queueModel.js - Employee data access
backend/models/employeeModel.js - MySQL pool
backend/config/db.js
Other components
- User
Connections 22
- User → Route selection: uses
frontend/src/App.jsx - Route selection → Cashier ordering: routes to
frontend/src/App.jsx - Route selection → Queue screen: routes to
frontend/src/App.jsx - Route selection → Attendance screen: routes to
frontend/src/App.jsx - Queue screen → Order controls: renders
frontend/src/pages/QueuingPage.jsx - Attendance screen → Attendance controls: renders
frontend/src/pages/Attendance.jsx - Attendance screen → Staff login: renders
frontend/src/pages/Attendance.jsx - Attendance screen → QR registration: renders
frontend/src/pages/Attendance.jsx - Express application → Cashier routes: mounts
backend/app.js - Express application → Queue routes: mounts
backend/app.js - Cashier routes → Cashier controller: dispatches
backend/routes/cashierRoutes.js - Queue routes → Queue controller: dispatches
backend/routes/queueRoutes.js - Cashier controller → Checkout and cart: calls
backend/controllers/cashierController.js - Queue controller → Queue operations: calls
backend/controllers/queueController.js - Employee routes → Employee controller: dispatches
backend/routes/employeeRoutes.js - Employee controller → Employee operations: calls
backend/controllers/employeeController.js - Checkout and cart → Order data access: reads and writes
backend/services/cashierServices.js - Queue operations → Queue data access: reads and writes
backend/services/queueService.js - Employee operations → Employee data access: reads and writes
backend/services/employeeService.js - Order data access → MySQL pool: uses pool
backend/models/cashierModel.js - Queue data access → MySQL pool: uses pool
backend/models/queueModel.js - Employee data access → MySQL pool: uses pool
backend/models/employeeModel.js