How kshitijp852/cafepos works
Cafe POS is a restaurant point-of-sale application: staff authenticate, manage tables and orders, and create bills, while owners and managers also oversee reservations, inventory, staff, and reporting. React views call a FastAPI backend over REST; the backend persists application records in MongoDB. The backend is a single sampled server module, so its business domains are represented as distinct responsibilities within that file. Several documented capabilities have no sampled implementation excerpts; those relationships are shown only where the README supports them.
Main entry points: api.js REST client · App.js App shell · TableDashboard.jsx Table dashboard · DashboardView.jsx Dashboard view
Components 22
POS client
- App shell
frontend/src/App.js - Session storage
frontend/src/utils/storage.js - Table dashboard
frontend/src/components/pos/dashboard/TableDashboard.jsx - Dashboard view
frontend/src/components/pos/dashboard/DashboardView.jsx - Order screen
frontend/src/components/pos/order/OrderView.jsx - History screen
frontend/src/components/pos/history/HistoryView.jsx - Inventory screen
frontend/src/components/pos/inventory/InventoryView.jsx - Reservations screen
frontend/src/components/pos/reservation/ReservationView.jsx - Waiter interface
frontend/src/components/pos/waiter/WaiterApp.jsx - REST client
frontend/src/utils/api.js
Service operations
- Menu management
backend/server.py - Order processing
backend/server.py - Table management
backend/server.py - Reservation management
backend/server.py - Secure billing
backend/server.py
Business controls
- Day sessions
backend/server.py - Sales reporting
backend/server.py - Inventory tracking
backend/server.py - Receipt printing
backend/server.py
Backend platform
- Authentication
backend/server.py - MongoDB
Other components
- Staff user
Connections 29
- Staff user → App shell: uses
- App shell → Session storage: loads session
frontend/src/App.js - App shell → Dashboard view: renders
frontend/src/App.js - Dashboard view → Table dashboard: renders
frontend/src/components/pos/dashboard/DashboardView.jsx - App shell → Order screen: renders
frontend/src/App.js - App shell → History screen: renders
frontend/src/App.js - App shell → Inventory screen: renders
frontend/src/App.js - App shell → Reservations screen: renders
frontend/src/App.js - App shell → Waiter interface: renders
frontend/src/App.js - Table dashboard → REST client: calls
frontend/src/components/pos/dashboard/TableDashboard.jsx - REST client → Authentication: sends REST requests
README.md - REST client → Menu management: sends REST requests
README.md - REST client → Order processing: sends REST requests
README.md - REST client → Table management: sends REST requests
README.md - REST client → Reservation management: sends REST requests
README.md - REST client → Secure billing: sends REST requests
README.md - REST client → Day sessions: sends REST requests
README.md - REST client → Sales reporting: sends REST requests
README.md - REST client → Inventory tracking: sends REST requests
README.md - REST client → Receipt printing: sends REST requests
README.md - Authentication → MongoDB: reads and writes
backend/server.py - Menu management → MongoDB: reads and writes
backend/server.py - Order processing → MongoDB: reads and writes
backend/server.py - Table management → MongoDB: reads and writes
backend/server.py - Reservation management → MongoDB: reads and writes
backend/server.py - Secure billing → MongoDB: reads and writes
README.md - Day sessions → MongoDB: reads and writes
README.md - Sales reporting → MongoDB: reads
README.md - Inventory tracking → MongoDB: reads and writes
README.md