How zoikogroup/driverxtra-platform works
DriverXtra is an automotive commerce platform with a Next.js interface and a Django REST backend. The visible user workflow covers account registration or login, then role-specific platform screens; the frontend API client connects those screens to backend capabilities including organisations, seller onboarding, catalogue, garage, and marketplace. Backend URL configuration confirms these domain routes, while the audit writer persists audit records. Several feature modules are represented from the tree and route configuration; their internal behavior was not sampled, so their relationships are not inferred.
Main entry points: urls.py Backend API routing · client.ts API client · page.tsx Login and registration · auth-context.tsx Prototype auth context
Components 18
Frontend experience
- Login and registration
frontend/src/app/login/page.tsx - Prototype auth context
frontend/src/lib/prototype-auth/auth-context.tsx - API client
frontend/src/lib/api/client.ts - Role dashboards
frontend/src/components/platform - Garage view
frontend/src/components/platform/Phase2GarageView.tsx
Identity and tenants
- Identity API
backend/apps/identity/views.py - Organisation API
backend/apps/organisations/views.py
Seller operations
- Seller onboarding
backend/apps/onboarding/views.py - Seller inventory
frontend/src/components/platform/SellerInventoryView.tsx
Vehicle commerce
- Vehicle and parts catalogue
backend/apps/catalogue/views.py - Personal garage API
backend/apps/garage/views.py - Marketplace listings
backend/apps/marketplace/views.py - Marketplace browse and review
frontend/src/components/platform/MarketplaceBrowseView.tsx
Platform services
- Backend API routing
backend/config/urls.py - Health check
backend/common/views.py - Audit writer
backend/platform_core/audit/writer.py - Audit log records
backend/platform_core/audit/models.py
Other components
- Platform user
Connections 19
- Platform user → Login and registration: starts session
frontend/src/app/login/page.tsx - Login and registration → Prototype auth context: authenticates
frontend/src/app/login/page.tsx - Prototype auth context → API client: calls auth API
frontend/src/lib/prototype-auth/auth-context.tsx - Login and registration → Prototype auth context: registers
- Garage view → API client: requests garage actions
frontend/src/components/platform/Phase2GarageView.tsx - API client → Backend API routing: requests API routes
frontend/src/lib/api/client.ts - Backend API routing → Health check: routes health check
backend/config/urls.py - Backend API routing → Identity API: routes identity
backend/config/urls.py - Backend API routing → Organisation API: routes organisations
backend/config/urls.py - Backend API routing → Seller onboarding: routes onboarding
backend/config/urls.py - Backend API routing → Vehicle and parts catalogue: routes catalogue
backend/config/urls.py - Backend API routing → Personal garage API: routes garage
backend/config/urls.py - Backend API routing → Marketplace listings: routes marketplace
backend/config/urls.py - API client → Identity API: calls auth endpoints
frontend/src/lib/api/client.ts - API client → Organisation API: calls organisation endpoints
frontend/src/lib/api/client.ts - API client → Seller onboarding: calls seller endpoints
frontend/src/lib/api/client.ts - API client → Vehicle and parts catalogue: calls catalogue endpoints
frontend/src/lib/api/client.ts - API client → Marketplace listings: calls listing endpoints
frontend/src/lib/api/client.ts - Audit writer → Audit log records: writes records
backend/platform_core/audit/writer.py