How shaanms/hungrio works
Hungrio is a Django restaurant-ordering platform. A customer browses the menu, authenticates, builds a cart, checks out through Stripe, and receives order confirmation; payment webhooks update order/payment state and trigger invoice and email tasks. The graph includes README-documented capabilities whose implementation was not sampled. Edges for those capabilities cite the README; source-backed payment and task relationships cite the shown modules. The runtime excerpts do not establish wiring for every advertised feature.
Main entry points: models.py Orders · js Ordering frontend · views.py Checkout API · tasks.py Confirmation task
Components 22
Storefront
- Ordering frontend
product/restaurant_frontend/js - Menu catalog
product - Categories
category
Identity & discovery
- Accounts & CAPTCHA
accounts
Cart & payment
- Cart
cart - Wishlist
wishlist - Checkout API
order_payment/views.py - Payment records
order_payment/models.py - Stripe webhook
order_payment/views.py
Orders & follow-up
- Orders
order/models.py - Stock & capacity
stock_and_capacity - Receipts
receipt - Refunds
refund - Complaints
complaint - Invoice generation
invoice/services/stripe.py
Runtime services
- Invoice task
invoice/tasks.py - Confirmation task
order/tasks.py - Celery worker
restaurant/celery.py
Other components
- Customer
- Stripe
- Brevo email
- PostgreSQL
Connections 30
- Customer → Ordering frontend: uses
- Ordering frontend → Menu catalog: browses
- Ordering frontend → Accounts & CAPTCHA: signs in
- Ordering frontend → Cart: adds items
- Ordering frontend → Wishlist: saves items
- Ordering frontend → Checkout API: checks out
- Menu catalog → Categories: organized by
- Checkout API → Cart: reads items
order_payment/views.py - Checkout API → Orders: creates
order_payment/views.py - Checkout API → Payment records: creates
order_payment/views.py - Checkout API → Stripe: creates intent
order_payment/views.py - Stripe → Stripe webhook: sends events
- Stripe webhook → Orders: updates status
order_payment/views.py - Stripe webhook → Payment records: updates status
order_payment/views.py - Stripe webhook → Confirmation task: queues email
order_payment/views.py - Stripe webhook → Invoice task: queues invoice
order_payment/views.py - Invoice task → Invoice generation: generates
invoice/tasks.py - Invoice generation → Stripe: creates invoice
invoice/services/stripe.py - Invoice generation → Orders: reads order
invoice/services/stripe.py - Confirmation task → Orders: reads order
order/tasks.py - Confirmation task → Payment records: reads payment
order/tasks.py - Confirmation task → Brevo email: sends email
order/tasks.py - Celery worker → Confirmation task: discovers tasks
restaurant/celery.py - Celery worker → Invoice task: discovers tasks
restaurant/celery.py - Orders → PostgreSQL: persists
order/models.py - Payment records → PostgreSQL: persists
order_payment/models.py - Customer → Stock & capacity: availability
- Orders → Receipts: receipt details
- Orders → Refunds: refund handling
- Customer → Complaints: reports issue