How purnasai1807-lgtm/collegebites works
CollegeBites is a cafeteria ordering and operations platform. Students browse menus, place and pay for orders, track preparation, and collect orders using a token or QR; staff and administrators manage kitchen, pickup, inventory, and reporting workflows. The repository includes web, mobile, and FastAPI backend applications, plus operational services and persistence. Source excerpts and the index confirm selected route-to-service and infrastructure dependencies; other workflow links below rely on the README’s documented architecture and are cited there.
Main entry points: api Backend APIs · database.py Database Access · menus/routes.py Menu Management · reports/routes.py Reporting and Analytics
Components 27
Customer and Staff Apps
- Web Application
frontend/src/App.tsx - Mobile Application
mobile/app/index.tsx
Ordering and Fulfillment
- Menu Management
backend/app/api/menus/routes.py - Orders and Cart
backend/app/services/order_service.py - Payments and Receipts
backend/app/services/payment_service.py - QR Pickup
backend/app/services/pickup_service.py
Cafeteria Operations
- Kitchen Production
backend/app/services/kitchen_service.py - Inventory and Procurement
backend/app/api/inventory/routes.py - Reporting and Analytics
backend/app/api/reports/routes.py - Administration
backend/app/api/admin/routes.py
Backend Platform
- Backend APIs
backend/app/api - Authentication and Roles
backend/app/services/auth_service.py - Realtime Updates
backend/app/api/realtime/routes.py - Cache and Redis
backend/app/core/cache.py - Database Access
backend/app/core/database.py - Configuration
backend/app/core/config.py
Persistent Domain Data
- Identity Records
backend/app/models/auth.py - Menu Records
backend/app/models/menu.py - Order Records
backend/app/models/order.py - Payment Records
backend/app/models/payment.py - Inventory Records
backend/app/models/inventory.py - Cafeteria Records
backend/app/models/college.py
Other components
- Student
- Cafeteria Staff
- Relational Database
- Razorpay
- Redis
Connections 34
- Student → Web Application: uses
README.md - Student → Mobile Application: uses
README.md - Cafeteria Staff → Web Application: uses
README.md - Web Application → Backend APIs: calls
README.md - Mobile Application → Backend APIs: calls
README.md - Backend APIs → Menu Management: routes menus
- Student → Menu Management: browses
README.md - Student → Orders and Cart: places order
README.md - Backend APIs → Orders and Cart: processes orders
backend/app/api/admin/routes.py - Student → Payments and Receipts: pays order
README.md - Payments and Receipts → Razorpay: processes payment
README.md - Orders and Cart → QR Pickup: issues token
README.md - Cafeteria Staff → Kitchen Production: prepares orders
README.md - Cafeteria Staff → QR Pickup: validates collection
README.md - Backend APIs → Inventory and Procurement: routes inventory
- Backend APIs → Reporting and Analytics: routes reports
- Backend APIs → Administration: routes administration
- Backend APIs → Realtime Updates: routes realtime
- Backend APIs → Authentication and Roles: uses authentication
backend/app/api/admin/routes.py - Authentication and Roles → Identity Records: reads and writes
backend/app/services/auth_service.py - Menu Management → Database Access: uses session
backend/app/api/menus/routes.py - Inventory and Procurement → Database Access: uses session
backend/app/api/inventory/routes.py - Administration → Database Access: uses session
backend/app/api/admin/routes.py - Reporting and Analytics → Database Access: uses session
backend/app/api/reports/routes.py - Realtime Updates → Database Access: uses session
backend/app/api/realtime/routes.py - Menu Management → Menu Records: queries records
backend/app/api/menus/routes.py - Inventory and Procurement → Inventory Records: queries records
backend/app/api/inventory/routes.py - Reporting and Analytics → Order Records: reports on orders
backend/app/api/reports/routes.py - Reporting and Analytics → Payment Records: reports on payments
backend/app/api/reports/routes.py - Administration → Cafeteria Records: manages cafeterias
backend/app/api/admin/routes.py - Database Access → Relational Database: connects
backend/app/core/database.py - Menu Management → Cache and Redis: uses caching
backend/app/api/menus/routes.py - Cache and Redis → Configuration: reads settings
backend/app/core/cache.py - Cache and Redis → Redis: uses Redis
backend/app/core/cache.py