How abrilherrera-svg/navi-web works
NAVI is a café operations system: staff sign in, then use a web console for orders, menu, inventory, cash, sales, tasks, users, and settings; a backend exposes API routes and persists operational data in Firebase. The shown code confirms the task-management flow and parts of authentication, inventory, and order handling. Other major feature areas are represented from the repository tree, but their internal calls were not sampled, so those relationships are left out.
Main entry points: App.tsx App navigation · routes API routes · orderController.ts Order handlers · tasks Tasks and shifts
Components 25
Web application
- App navigation
NAVI-web/src/App.tsx - Login
NAVI-web/src/pages/LoginPage.tsx - Auth client
NAVI-web/src/features/auth/services/authService.ts - HTTP client
NAVI-web/src/lib/api.ts
Café operations
- Orders
NAVI-web/src/features/orders - Menu and recipes
NAVI-web/src/features/menu - Inventory
NAVI-web/src/features/inventory - Cash register
NAVI-web/src/features/cash-register - Sales reporting
NAVI-web/src/features/sales - Dashboard
NAVI-web/src/features/dashboard - Tasks and shifts
NAVI-web/src/features/tasks - Staff management
NAVI-web/src/features/users - Extras
NAVI-web/src/features/extras - Settings and profile
NAVI-web/src/features/settings
Backend API
- API routes
NAVI-web/backend/src/routes - Auth handlers
NAVI-web/backend/src/controllers/authController.ts - Order handlers
NAVI-web/backend/src/controllers/orderController.ts - Inventory handlers
NAVI-web/backend/src/controllers/inventoryController.ts - Recipe handlers
NAVI-web/backend/src/controllers/recipeController.ts
Identity and data
- User records
NAVI-web/backend/src/models/userModel.ts - Order records
NAVI-web/backend/src/models/orderModel.ts - Inventory records
NAVI-web/backend/src/models/inventoryModel.ts - Firebase services
NAVI-web/backend/src/config/firebase.ts - Push notifications
NAVI-web/backend/src/services/notificaciones.ts
Other components
- Staff user
Connections 27
- Staff user → App navigation: uses
NAVI-web/src/App.tsx - App navigation → Login: shows signed out
NAVI-web/src/App.tsx - App navigation → Auth client: calls login
NAVI-web/src/App.tsx - Auth client → HTTP client: requests through
NAVI-web/src/features/auth/services/authService.ts - App navigation → Dashboard: selects page
NAVI-web/src/App.tsx - App navigation → Sales reporting: selects page
NAVI-web/src/App.tsx - App navigation → Orders: selects page
NAVI-web/src/App.tsx - App navigation → Menu and recipes: selects page
NAVI-web/src/App.tsx - App navigation → Cash register: selects page
NAVI-web/src/App.tsx - App navigation → Inventory: selects page
NAVI-web/src/App.tsx - App navigation → Tasks and shifts: selects page
NAVI-web/src/App.tsx - App navigation → Staff management: selects page
NAVI-web/src/App.tsx - App navigation → Settings and profile: selects page
NAVI-web/src/App.tsx - Tasks and shifts → Staff management: reads staff
NAVI-web/src/pages/TasksPage.tsx - Tasks and shifts → API routes: requests task API
- API routes → Auth handlers: routes auth
NAVI-web/backend/src/routes/authRoutes.ts - API routes → Inventory handlers: routes inventory
NAVI-web/backend/src/routes/inventoryRoutes.ts - API routes → Recipe handlers: routes recipes
NAVI-web/backend/src/routes/inventoryRoutes.ts - API routes → Order handlers: routes orders
NAVI-web/backend/src/routes/orderRoutes.ts - Auth handlers → User records: reads and updates
NAVI-web/backend/src/controllers/authController.ts - Inventory handlers → Inventory records: uses inventory data
NAVI-web/backend/src/controllers/inventoryController.ts - Recipe handlers → Firebase services: uses Firebase data
- Order handlers → Order records: reads and writes
NAVI-web/backend/src/controllers/orderController.ts - Order handlers → User records: looks up customer
NAVI-web/backend/src/controllers/orderController.ts - Order handlers → Push notifications: sends notifications
NAVI-web/backend/src/controllers/orderController.ts - User records → Firebase services: uses Firebase
NAVI-web/backend/src/models/userModel.ts - Inventory records → Firebase services: uses Firebase
NAVI-web/backend/src/models/inventoryModel.ts