How nirmal-001/urban-cafe works
Urban Brew is a café ordering application with customer-facing table-based ordering and an admin area for managing the menu, categories, and tables. Customers view available items, build a session cart, and submit an order; administrators manage catalog and table data and can generate table QR codes. The graph reflects sampled code and SOURCE INDEX references; the README is empty, and several endpoints are unsampled, so their internal behavior and some navigation links are not inferred.
Main entry points: db.php Application database · cart.php Session cart · tables.php Table management · menu.php Browse menu
Components 20
Customer ordering
- Browse menu
customer/menu.php - Session cart
customer/cart.php - Cart updates
customer/update_cart.php - Place order
customer/checkout.php - Order confirmation
customer/success.php
Café administration
- Admin dashboard
admin/dashboard.php - Menu management
admin/menu_items.php - Add menu item
admin/add_item.php - Category management
admin/category.php - Add category
admin/add_categories.php - Table management
admin/tables.php - Add table
admin/add_table.php
Account access
- Register account
process_register.php - Sign in
login.php - User dashboard
dashboard.php
QR generation
- Table QR generation
admin/GenerateQR.php - QR encoder
phpqrcode/qrlib.php
Other components
- Diner
- Administrator
- Application database
db.php
Connections 24
- Diner → Browse menu: browses
- Browse menu → Application database: queries items
customer/menu.php - Browse menu → Session cart: opens cart
customer/menu.php - Session cart → Application database: reads items
customer/cart.php - Session cart → Cart updates: requests updates
customer/cart.php - Session cart → Place order: continues ordering
customer/cart.php - Place order → Application database: stores order
customer/checkout.php - Place order → Order confirmation: redirects to
customer/checkout.php - Administrator → Admin dashboard: manages café
- Menu management → Application database: queries menu
admin/menu_items.php - Menu management → Add menu item: links to add
admin/menu_items.php - Add menu item → Application database: reads categories; saves item
admin/add_item.php - Category management → Application database: queries categories
admin/category.php - Category management → Add category: links to add
admin/category.php - Add category → Application database: writes category
admin/add_categories.php - Table management → Application database: queries tables
admin/tables.php - Table management → Add table: links to add
admin/tables.php - Add table → Application database: writes table
admin/add_table.php - Table management → Table QR generation: requests QR
admin/tables.php - Table QR generation → QR encoder: encodes table URL
admin/GenerateQR.php - Table QR generation → Application database: saves QR path
admin/GenerateQR.php - Register account → Application database: checks and creates user
process_register.php - Sign in → Application database: checks credentials
login.php - Sign in → User dashboard: redirects on success
login.php