How ajithonlinee/villagemart works
Kunavaram Mart is a hyperlocal commerce app: shoppers browse and search products, manage a cart, check out, pay, and track delivery. The frontend routes these experiences and calls a Django REST API; the backend exposes catalog and order operations, persists catalog/order data, and integrates payment verification and Telegram alerts. The checkout implementation and model definitions are indexed but not excerpted, so their internal behavior and some connections are not asserted here.
Main entry points: orders/views.py Order endpoints · App.jsx App and cart · products/views.py Catalog endpoints · serializers.py Order serialization
Components 18
Shopping frontend
- App and cart
frontend/src/App.jsx - Browse catalog
frontend/src/pages/Home.jsx - Checkout
frontend/src/pages/Checkout.jsx - Order tracking
frontend/src/pages/OrderStatus.jsx - API client
frontend/src/services/api.js
Product catalog
- Catalog endpoints
backend/products/views.py - Catalog serialization
backend/products/serializers.py - Categories and products
backend/products/models.py - Catalog routes
backend/products/urls.py
Orders and payment
- Order endpoints
backend/orders/views.py - Order serialization
backend/orders/serializers.py - Orders and items
backend/orders/models.py - Order routes
backend/orders/urls.py
Backend platform
- Django settings
backend/core/settings.py - Project routes
backend/core/urls.py
Other components
- Shopper
- Razorpay
- Telegram alerts
Connections 16
- Shopper → App and cart: uses
frontend/src/App.jsx - App and cart → Browse catalog: routes to
frontend/src/App.jsx - App and cart → Checkout: routes to
frontend/src/App.jsx - App and cart → Order tracking: routes to
frontend/src/App.jsx - Browse catalog → API client: fetches catalog
frontend/src/pages/Home.jsx - Order tracking → API client: requests status
frontend/src/pages/OrderStatus.jsx - Catalog routes → Catalog endpoints: routes
backend/products/urls.py - Catalog endpoints → Categories and products: queries
backend/products/views.py - Catalog endpoints → Catalog serialization: serializes
backend/products/views.py - Order routes → Order endpoints: routes
backend/orders/urls.py - Order endpoints → Order serialization: serializes
backend/orders/views.py - Order endpoints → Orders and items: reads and writes
backend/orders/views.py - Order serialization → Orders and items: creates and serializes
backend/orders/serializers.py - Order serialization → Categories and products: resolves products
backend/orders/serializers.py - Order endpoints → Razorpay: creates and verifies
backend/orders/views.py - Order endpoints → Telegram alerts: dispatches alert
backend/orders/views.py