How johnlorenhabal572-create/gipskit works
This is a restaurant ordering and operations application: customers browse a menu, authenticate, manage a cart and place orders; staff and administrators use point-of-sale, inventory, menu, account and reporting screens. The frontend routes these experiences and calls API services, while an Express server handles authentication, orders, products, categories, inventory and notifications, backed by MongoDB when available. The README describes local setup rather than product features, so capability coverage is based on the repository tree and source index. Some page-to-service links are evidenced only by the index, not inspected implementation excerpts.
Main entry points: App.tsx Route Application · server.ts HTTP Server · ManageInventory.tsx Inventory Management · productService.ts Product Service
Components 34
Customer Ordering
- Login Signup
src/pages/LoginPages.tsx - Menu Catalog
src/pages/Catalog.tsx - Checkout
src/pages/Checkout.tsx - Order History
src/pages/CustomerOrderHistory.tsx - Customer Payment
src/pages/CustomerPayment.tsx
Staff Operations
- Point of Sale
src/pages/POS.tsx - Menu Management
src/pages/ManageMenu.tsx - Inventory Management
src/pages/ManageInventory.tsx - Sales Reports
src/pages/SalesReport.tsx - Account Management
src/pages/AccountManagement.tsx - Admin Dashboard
src/pages/AdminDashboard.tsx - Reorder List
src/pages/ReorderList.tsx - Transactions
src/pages/TransactionHistory.tsx - Bills
src/pages/MyBill.tsx
Frontend Platform
- Route Application
src/App.tsx - Auth State
src/context/AuthContext.tsx - Cart State
src/context/CartContext.tsx - Notifications
src/context/NotificationContext.tsx - Confirm Dialogs
src/context/ConfirmContext.tsx - Custom Select
src/components/CustomSelect.tsx - Inventory Service
src/api/inventoryService.ts - Order Service
src/api/orderService.ts - Product Service
src/api/productService.ts - Notification Service
src/api/notificationService.ts
Server API
- HTTP Server
server.ts - Session Authentication
server/auth.ts - Email Verification
server/email.ts - Order API
server/routes/orderRoutes.ts - Product API
server/routes/productRoutes.ts - Inventory API
server/routes/inventoryRoutes.ts - Category API
server/routes/categoryRoutes.ts
Persistence
- MongoDB Store
server/db.ts
Other components
- Customer
- Staff Admin
Connections 45
- Route Application → Auth State: provides state
src/App.tsx - Route Application → Cart State: provides state
src/App.tsx - Route Application → Notifications: provides state
src/App.tsx - Route Application → Confirm Dialogs: provides state
src/App.tsx - Route Application → Login Signup: routes to
src/App.tsx - Route Application → Menu Catalog: routes to
src/App.tsx - Route Application → Checkout: routes to
src/App.tsx - Route Application → Point of Sale: routes to
src/App.tsx - Route Application → Menu Management: routes to
src/App.tsx - Route Application → Inventory Management: routes to
src/App.tsx - Route Application → Account Management: routes to
src/App.tsx - Customer → Menu Catalog: browses
- Customer → Checkout: places order
- Staff Admin → Point of Sale: uses
- Staff Admin → Inventory Management: manages stock
- Login Signup → Auth State: uses auth
src/pages/LoginPages.tsx - Cart State → Auth State: reads user
src/context/CartContext.tsx - Notifications → Notification Service: requests updates
src/context/NotificationContext.tsx - Inventory Management → Inventory Service: manages inventory
src/pages/ManageInventory.tsx - Inventory Management → Notifications: reports updates
src/pages/ManageInventory.tsx - Inventory Management → Confirm Dialogs: requests confirmation
src/pages/ManageInventory.tsx - Inventory Management → Custom Select: renders
src/pages/ManageInventory.tsx - Menu Management → Product Service: manages products
src/pages/ManageMenu.tsx - Menu Management → Inventory Service: uses stock
src/pages/ManageMenu.tsx - Menu Management → Custom Select: renders
src/pages/ManageMenu.tsx - Point of Sale → Product Service: loads products
src/pages/POS.tsx - Point of Sale → Order Service: submits orders
src/pages/POS.tsx - Point of Sale → Cart State: uses cart
src/pages/POS.tsx - Sales Reports → Order Service: fetches sales
src/pages/SalesReport.tsx - Sales Reports → Product Service: fetches products
src/pages/SalesReport.tsx - Sales Reports → Inventory Service: fetches stock
src/pages/SalesReport.tsx - Product Service → Inventory Service: loads stock
src/api/productService.ts - Order Service → Order API: requests orders
src/api/orderService.ts - Product Service → Product API: requests products
src/api/productService.ts - Product Service → Category API: requests categories
src/api/productService.ts - Inventory Service → Inventory API: requests inventory
src/api/inventoryService.ts - HTTP Server → Session Authentication: uses sessions
server.ts - HTTP Server → Email Verification: uses email
server.ts - HTTP Server → Order API: registers routes
server.ts - HTTP Server → Product API: registers routes
server.ts - HTTP Server → Inventory API: registers routes
server.ts - HTTP Server → Category API: registers routes
server.ts - Order API → Session Authentication: checks sessions
server/routes/orderRoutes.ts - Order API → MongoDB Store: checks connection
server/routes/orderRoutes.ts - HTTP Server → MongoDB Store: connects database
server.ts