How riyavartha18/tarika-retail works
Tarika is a retail storefront and operations platform: customers browse products, manage a bag and wishlist, and authenticate into role-specific portals; warehouse staff manage inventory and order fulfillment. The React application calls a Django REST backend, whose domain apps cover accounts, catalog, cart, and warehouse operations. The graph preserves these major capabilities, including admin and delivery entry points. Some backend routing and UI details were not sampled, so links between those areas are limited to documented calls or are omitted.
Main entry points: App.jsx Role-based app · CustomerPortal.jsx Customer portal · urls.py Django API · services.py Cart services
Components 30
Storefront and portals
- Role-based app
frontend/src/App.jsx - Auth context
frontend/src/auth/AuthContext.jsx - Customer portal
frontend/src/pages/customer/CustomerPortal.jsx - Shopping state
frontend/src/context/CustomerContext.jsx - Customer home
frontend/src/pages/customer/CustomerHome.jsx - Category shop
frontend/src/pages/customer/ShopCategories.jsx - Bag and wishlist
frontend/src/pages/customer/BagPage.jsx - Login and signup
frontend/src/pages/Login.jsx - Warehouse portal
frontend/src/pages/warehouse/WarehousePortal.jsx - Admin portal
frontend/src/pages/placeholders/AdminPlaceholder.jsx - Delivery portal
frontend/src/pages/placeholders/DeliveryPlaceholder.jsx - API client
frontend/src/services/api.js
Identity and roles
- Account endpoints
backend/accounts/views.py - Supabase auth service
backend/accounts/services/supabase_auth.py - Roles and permissions
backend/accounts/permissions.py - Account records
backend/accounts/models.py
Catalog and shopping
- Catalog endpoints
backend/catalog/views.py - Product and stock data
backend/catalog/models.py - Catalog serializers
backend/catalog/serializers.py - Cart endpoints
backend/cart/views.py - Cart services
backend/cart/services.py - Cart and wishlist data
backend/cart/models.py - Cart serializers
backend/cart/serializers.py
Warehouse and operations
- Warehouse endpoints
backend/warehouse/views.py - Warehouse services
backend/warehouse/services.py - Orders and fulfillment data
backend/warehouse/models.py - Warehouse serializers
backend/warehouse/serializers.py
Backend services
- Django API
backend/config/urls.py
Other components
- Customer
- Operations staff
Connections 34
- Customer → Role-based app: uses
frontend/src/App.jsx - Operations staff → Role-based app: uses
frontend/src/App.jsx - Role-based app → Auth context: provides auth
frontend/src/App.jsx - Role-based app → Customer portal: routes customers
frontend/src/App.jsx - Role-based app → Warehouse portal: routes warehouse
frontend/src/App.jsx - Role-based app → Admin portal: routes admins
frontend/src/App.jsx - Role-based app → Delivery portal: routes delivery
frontend/src/App.jsx - Auth context → API client: calls
frontend/src/auth/AuthContext.jsx - Login and signup → Auth context: authenticates
frontend/src/pages/Login.jsx - Customer portal → Shopping state: uses
frontend/src/pages/customer/CustomerPortal.jsx - Customer portal → Customer home: renders
frontend/src/pages/customer/CustomerPortal.jsx - Customer portal → Category shop: renders
frontend/src/pages/customer/CustomerPortal.jsx - Customer portal → Bag and wishlist: renders
frontend/src/pages/customer/CustomerPortal.jsx - Shopping state → API client: calls
frontend/src/context/CustomerContext.jsx - Warehouse portal → API client: calls
frontend/src/services/api.js - API client → Django API: HTTP requests
frontend/src/services/api.js - Django API → Account endpoints: routes
- Django API → Catalog endpoints: routes
- Django API → Cart endpoints: routes
- Django API → Warehouse endpoints: routes
- Account endpoints → Supabase auth service: delegates
- Supabase auth service → Account records: creates profiles
backend/accounts/services/supabase_auth.py - Account endpoints → Roles and permissions: checks access
- Cart endpoints → Cart services: delegates
backend/cart/views.py - Cart services → Cart and wishlist data: reads and writes
backend/cart/services.py - Cart services → Cart serializers: serializes
backend/cart/services.py - Cart services → Product and stock data: checks products
backend/cart/services.py - Catalog endpoints → Product and stock data: reads
- Catalog endpoints → Catalog serializers: serializes
- Warehouse endpoints → Warehouse services: delegates
backend/warehouse/views.py - Warehouse endpoints → Warehouse serializers: serializes
backend/warehouse/views.py - Warehouse services → Orders and fulfillment data: queries
backend/warehouse/services.py - Warehouse services → Product and stock data: updates stock
backend/warehouse/services.py - Warehouse serializers → Orders and fulfillment data: serializes
backend/warehouse/serializers.py