How quan140106/nguyen_huu_quan-cnpm works
HI MrD is a restaurant-management application: staff sign in, then use a role-aware dashboard to manage orders, tables, menu items, kitchen work, payments, and (for managers) inventory, reports, and settings. The React pages call a local Express API, which accesses SQLite; the dashboard explicitly loads summary statistics and recent sales data. The README is only the Vite template, so product capabilities are inferred from the page tree and sampled code. Backend links for unsampled pages are omitted where their wiring cannot be confirmed.
Main entry points: App.jsx App shell · server.js Express API · Login.jsx Sign in · ManagerDashboard.jsx Dashboard
Components 16
React application
- App shell
src/App.jsx - Navigation
src/components/Sidebar.jsx
Restaurant operations
- Sign in
src/pages/Login.jsx - Dashboard
src/pages/ManagerDashboard.jsx - Orders
src/pages/Orders.jsx - Tables
src/pages/Tables.jsx - Menu management
src/pages/Menu.jsx - Inventory
src/pages/Inventory.jsx - Kitchen
src/pages/Kitchen.jsx - Payments
src/pages/Payment.jsx - Reports
src/pages/Reports.jsx - Settings
src/pages/Settings.jsx - Tasks board
src/pages/Tasks.jsx
API and persistence
- Express API
backend/server.js - SQLite database
backend/data/teammanager.db
Other components
- Staff
Connections 22
- Staff → App shell: uses
- App shell → Sign in: renders when signed out
- App shell → Navigation: renders navigation
- App shell → Dashboard: dispatches page
- App shell → Orders: dispatches page
- App shell → Tables: dispatches page
- App shell → Menu management: dispatches page
- App shell → Inventory: dispatches page
- App shell → Kitchen: dispatches page
- App shell → Payments: dispatches page
- App shell → Reports: dispatches page
- App shell → Settings: dispatches page
- Sign in → Express API: authenticates
- Dashboard → Express API: fetches dashboard
- Orders → Express API: manages orders
- Tables → Express API: manages tables
- Menu management → Express API: manages menu
- Inventory → Express API: manages stock
- Kitchen → Express API: fetches kitchen orders
- Payments → Express API: submits payment
- Express API → SQLite database: reads and writes
- Tasks board → Staff: presents task board