How manojhole/vegz-user works
Vegz is a customer vegetable-and-grocery ordering app backed by a monolithic FastAPI service. Customers browse a city-specific catalog, build a basket, verify a phone number, provide an address, choose payment, place an order, and view order status/history. The backend also supports multi-shop catalog synchronization and dispatch, plus support tickets. The web/PWA is the documented primary client; mobile and Android shells are separate clients. Some backend routes and the Android shell were not sampled, so those relationships are based on README statements rather than inspected implementation.
Main entry points: main.py FastAPI application · app.js Web storefront · database.py Database session · MainActivity.kt Android WebView shell
Components 18
Customer clients
- Web storefront
frontend/app.js - PWA offline shell
frontend/sw.js - Android WebView shell
android/app/src/main/java/com/vegz/user/MainActivity.kt
Shopping flow
- Catalog and basket
frontend/app.js - OTP verification
frontend/app.js - Delivery address
frontend/app.js - Payment choice
frontend/app.js - Orders and status
backend/app/main.py - Order support
backend/app/main.py
Customer API
- FastAPI application
backend/app/main.py - Request and response schemas
backend/app/schemas.py - Domain models
backend/app/models.py - Database session
backend/app/database.py - Application database
backend/app/database.py
External services
- Shop service
- Agent service
- AWS SNS SMS
Other components
- Customer
Connections 19
- Customer → Web storefront: uses
README.md - Web storefront → Catalog and basket: renders
frontend/app.js - Catalog and basket → FastAPI application: requests catalog
frontend/app.js - OTP verification → FastAPI application: requests OTP
frontend/app.js - Delivery address → FastAPI application: saves address
frontend/app.js - Payment choice → FastAPI application: places order
- Web storefront → PWA offline shell: uses offline cache
README.md - Customer → Android WebView shell: uses
README.md - Android WebView shell → Web storefront: loads customer app
README.md - FastAPI application → Request and response schemas: uses schemas
backend/app/main.py - FastAPI application → Domain models: uses models
backend/app/main.py - Domain models → Database session: uses base
backend/app/models.py - FastAPI application → Database session: opens sessions
backend/app/main.py - Database session → Application database: connects
backend/app/database.py - FastAPI application → Orders and status: serves order status
README.md - FastAPI application → Order support: serves tickets
backend/app/main.py - FastAPI application → Shop service: syncs catalog
README.md - FastAPI application → Agent service: sends dispatch
README.md - FastAPI application → AWS SNS SMS: sends OTP
README.md