How mtahafarrukh/daraz-multi-store-app works
Daraz Multi-Store Manager is a workspace-based dashboard and API for connecting Daraz seller stores and managing their commerce operations. Users authenticate, connect stores, then work with orders and shipping labels, products and inventory, and store performance, analytics, and finance. The React application calls the FastAPI service; backend domain modules and the repository support these operations. The excerpts show frontend auth/API behavior and selected finance, print, and product endpoints; other capability links reflect README and module names, so uncertain internal wiring is omitted.
Main entry points: App.tsx React dashboard · app.py API and OAuth · client.ts API client · finance_sync.py Finance sync
Components 25
Web application
- React dashboard
frontend/src/App.tsx - API client
frontend/src/lib/api/client.ts - Sign in
frontend/src/pages/AuthPages.tsx
Workspace access
- Auth state
frontend/src/hooks/useAuth.tsx - Store connections
frontend/src/pages/StoresPage.tsx
Commerce operations
- Orders and shipping
frontend/src/pages/OrdersPage.tsx - Products
frontend/src/pages/ProductsPage.tsx - Inventory
frontend/src/pages/InventoryPage.tsx - Shipping
frontend/src/pages/ShippingPage.tsx
Business insights
- Performance
frontend/src/pages/PerformancePage.tsx - Analytics
frontend/src/pages/AnalyticsPage.tsx - Finance
frontend/src/pages/FinancePage.tsx
Backend services
- API and OAuth
src/app.py - Store connections
src/workspace_connections.py - Order processing
src/orders.py - Label processing
src/label_processor.py - Product workflows
src/product_add.py - Inventory service
src/inventory.py - Performance sync
src/performance_sync.py - Analytics service
src/analytics_service.py - Finance sync
src/finance_sync.py - Workspace data
src/db/repo.py
Other components
- Store manager
- Daraz platform
- Supabase auth
Connections 38
- Store manager → React dashboard: uses
- React dashboard → Sign in: routes to
- React dashboard → Store connections: routes to
- React dashboard → Orders and shipping: routes to
- React dashboard → Products: routes to
- React dashboard → Inventory: routes to
- React dashboard → Shipping: routes to
- React dashboard → Performance: routes to
- React dashboard → Analytics: routes to
- React dashboard → Finance: routes to
- Auth state → Supabase auth: gets session
- Auth state → API client: loads workspace
- Sign in → Auth state: signs in
- Store connections → API client: requests data
- Orders and shipping → API client: requests data
- Products → API client: requests data
- Inventory → API client: requests data
- Shipping → API client: requests data
- Performance → API client: requests data
- Analytics → API client: requests data
- Finance → API client: requests data
- API client → API and OAuth: HTTP requests
- API and OAuth → Store connections: handles connections
- API and OAuth → Order processing: handles orders
- API and OAuth → Label processing: starts label jobs
- API and OAuth → Product workflows: handles products
- API and OAuth → Inventory service: handles inventory
- API and OAuth → Performance sync: serves performance
- API and OAuth → Analytics service: serves analytics
- API and OAuth → Finance sync: calls finance summary
- API and OAuth → Workspace data: reads and writes
- Store connections → Daraz platform: OAuth connection
- Order processing → Daraz platform: orders and labels
- Product workflows → Daraz platform: product operations
- Inventory service → Daraz platform: inventory operations
- Performance sync → Daraz platform: syncs metrics
- Finance sync → Daraz platform: syncs finance
- Finance sync → Workspace data: reads transactions