How rat-sh/kds-pos works
KitchenFlow is a role-driven QSR kitchen operations system: staff sign in, counter staff create and pay for orders, tickets route to kitchen stations for timed preparation and handoff, and managers/admins oversee operations and setup. The React screens call a Spring API backed by PostgreSQL; domain logic and client stores support ticket handling and live operational views. README documents the broader station, reporting, audit, and public-board capabilities. Some frontend and backend subsystems are represented by their exact tree paths but were not sampled; their links are included only where documented.
Main entry points: KitchenFlowController.java HTTP controller · StationBoard.tsx Station board · ManagerBoard.tsx Manager board · OrderService.java Order operations
Components 21
Operations client
- Application shell
KitchenFlow_Operations_Screens/src/app/AppRoot.tsx - Sign-in
KitchenFlow_Operations_Screens/src/features/auth/components/Login.tsx - Counter POS
KitchenFlow_Operations_Screens/src/features/orders/components/PosScreen.tsx - Station board
KitchenFlow_Operations_Screens/src/features/kitchen/components/StationBoard.tsx - Manager board
KitchenFlow_Operations_Screens/src/features/board/components/ManagerBoard.tsx - Public board
KitchenFlow_Operations_Screens/src/features/board/components/StatusBoard.tsx - API requests
KitchenFlow_Operations_Screens/src/api/request.ts - Client state
KitchenFlow_Operations_Screens/src/store
Operations domain
- Ticket workflow
KitchenFlow_Operations_Screens/src/domain/ticket-state - Queues and SLA
KitchenFlow_Operations_Screens/src/domain/queue - Pricing rules
KitchenFlow_Operations_Screens/src/domain/pricing
Spring API
- HTTP controller
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - Authentication
src/main/java/com/kitchenflow/kds/auth/service/AuthService.java - Order operations
src/main/java/com/kitchenflow/kds/order/service/OrderService.java - Payment handling
src/main/java/com/kitchenflow/kds/order/service/PaymentService.java
Setup and oversight
- Catalog and stock
src/main/java/com/kitchenflow/kds/menu/service/CatalogService.java - Reports
src/main/java/com/kitchenflow/kds/report/service/ReportService.java - Audit log
KitchenFlow_Operations_Screens/src/features/audit/components/Audit.tsx
Persistence and live updates
- PostgreSQL
- Public SSE stream
src/main/java/com/kitchenflow/kds/board/BoardStream.java
Other components
- Restaurant staff
Connections 26
- Restaurant staff → Application shell: uses
README.md - Application shell → Sign-in: routes
- Restaurant staff → Counter POS: places orders
README.md - Restaurant staff → Station board: prepares tickets
README.md - Restaurant staff → Manager board: oversees orders
README.md - Restaurant staff → Public board: views tokens
README.md - Manager board → API requests: sends actions
KitchenFlow_Operations_Screens/src/features/board/components/ManagerBoard.tsx - Manager board → Client state: refreshes orders
KitchenFlow_Operations_Screens/src/features/board/components/ManagerBoard.tsx - API requests → HTTP controller: HTTP requests
README.md - HTTP controller → Authentication: delegates login
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - HTTP controller → Order operations: delegates orders
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - HTTP controller → Payment handling: records payment
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - HTTP controller → Catalog and stock: delegates catalog
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - HTTP controller → Reports: serves reports
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - HTTP controller → Public SSE stream: serves SSE
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java - Order operations → PostgreSQL: reads and writes
src/main/java/com/kitchenflow/kds/order/service/OrderService.java - Payment handling → PostgreSQL: reads and writes
src/main/java/com/kitchenflow/kds/order/service/PaymentService.java - Catalog and stock → PostgreSQL: reads and writes
src/main/java/com/kitchenflow/kds/menu/service/CatalogService.java - Authentication → PostgreSQL: loads credentials
src/main/java/com/kitchenflow/kds/auth/service/AuthService.java - Order operations → Payment handling: uses payment service
src/main/java/com/kitchenflow/kds/order/service/OrderService.java - Station board → Ticket workflow: advances tickets
- Station board → Queues and SLA: views timed queue
README.md - Counter POS → Pricing rules: calculates totals
README.md - Catalog and stock → Reports: supplies operations data
- Public board → Public SSE stream: subscribes
README.md - HTTP controller → Audit log: exposes audit entries
src/main/java/com/kitchenflow/kds/api/KitchenFlowController.java