How mahaqj/software-engineering-project works
SupplyCraft is a Django warehouse-to-restaurant inventory application. Restaurant managers sign up for warehouse approval, browse food stock, build and place orders, and track fulfillment and bills; warehouse managers maintain catalog batches and prices, restock inventory, process orders, and review reports. Notifications support manager communication. The sampled views call service functions, which implement business operations over Django models; URL routing and templates form the web interface. Some feature routes are documented in the URL map, but their detailed view/service interactions were not sampled.
Main entry points: views.py Request handlers · services.py Order processing · models.py Food items and batches · urls.py App routes
Components 15
Web interface
- App routes
backend/warehouse_inventory/urls.py - Request handlers
backend/warehouse_inventory/views.py - Page templates
backend/warehouse_inventory/templates/warehouse_inventory - Input forms
backend/warehouse_inventory/forms.py
Manager accounts
- Role guards
backend/warehouse_inventory/decorators.py - Manager accounts
backend/warehouse_inventory/services.py
Inventory operations
- Catalog and stock
backend/warehouse_inventory/services.py - Food items and batches
backend/warehouse_inventory/models.py
Orders and billing
- Order processing
backend/warehouse_inventory/services.py - Orders and lines
backend/warehouse_inventory/models.py - Payments and fees
backend/warehouse_inventory/models.py
Reports and messaging
- Billing reports
backend/warehouse_inventory/services.py - Notifications
backend/warehouse_inventory/services.py - Manager messages
backend/warehouse_inventory/models.py
Other components
- Managers
Connections 17
- Managers → App routes: requests pages
README.md - App routes → Request handlers: routes requests
backend/warehouse_inventory/urls.py - Request handlers → Page templates: renders pages
backend/warehouse_inventory/views.py - Request handlers → Input forms: uses forms
backend/warehouse_inventory/views.py - Request handlers → Role guards: checks roles
backend/warehouse_inventory/views.py - Request handlers → Manager accounts: creates accounts
backend/warehouse_inventory/views.py - Request handlers → Catalog and stock: manages stock
backend/warehouse_inventory/views.py - Request handlers → Order processing: handles orders
backend/warehouse_inventory/views.py - Request handlers → Billing reports: requests reports
backend/warehouse_inventory/views.py - Request handlers → Notifications: sends notices
backend/warehouse_inventory/views.py - Manager accounts → Food items and batches: persists managers
backend/warehouse_inventory/services.py - Catalog and stock → Food items and batches: reads and writes
backend/warehouse_inventory/services.py - Order processing → Orders and lines: creates and updates
backend/warehouse_inventory/services.py - Order processing → Food items and batches: allocates stock
backend/warehouse_inventory/services.py - Order processing → Payments and fees: creates payments
backend/warehouse_inventory/services.py - Billing reports → Payments and fees: queries payments
backend/warehouse_inventory/services.py - Notifications → Manager messages: stores messages
backend/warehouse_inventory/services.py