How anxnas/delivery-service-platform works
A delivery-service platform with an administrator web dashboard, courier mobile app, and Django REST API. Administrators and couriers authenticate, then view, filter, create, edit, complete, and inspect deliveries; the web dashboard also presents delivery analytics and reference catalogs. The graph separates client workflows, API handling, domain data, and persistence. README documents PostgreSQL and JWT, but the sampled source does not establish the database wiring or every route; those links are therefore omitted or marked unverified.
Main entry points: DashboardPage.js Dashboard · AppNavigator.tsx App Navigation · urls.py API Routing · deliveryService.ts Mobile Delivery Service
Components 34
Admin Web
- Web App Routing
frontend/src/App.js - Web Authentication
frontend/src/contexts/AuthContext.js - Web Auth Service
frontend/src/services/authService.js - Web API Client
frontend/src/services/api.js - Dashboard
frontend/src/pages/DashboardPage.js - Delivery Filters
frontend/src/components/DeliveryFilters.js - Delivery Table
frontend/src/components/DeliveryTable.js - Charts and Stats
frontend/src/components/DeliveryChart.js - Web Delivery Service
frontend/src/services/deliveryService.js - Catalog Service
frontend/src/services/catalogService.js
Courier Mobile
- Mobile App
mobile/App.tsx - Mobile Authentication
mobile/src/contexts/AuthContext.tsx - Mobile Auth Service
mobile/src/api/authService.ts - Mobile API Client
mobile/src/api/apiClient.ts - App Navigation
mobile/src/navigation/AppNavigator.tsx - Delivery Screens
mobile/src/screens/DeliveriesScreen.tsx - Create Delivery
mobile/src/screens/CreateDeliveryScreen.tsx - Delivery Details
mobile/src/screens/DeliveryDetailsScreen.tsx - Edit Delivery
mobile/src/screens/EditDeliveryScreen.tsx - Courier Profile
mobile/src/screens/ProfileScreen.tsx - Mobile Delivery Service
mobile/src/api/deliveryService.ts - Reference Service
mobile/src/api/referenceService.ts
Backend API
- API Routing
backend/config/urls.py - Delivery API
backend/api/views/delivery.py - Reference API
backend/api/views/reference/devilery_service.py - Analytics API
backend/api/views/analytics.py - User API
backend/api/views/user.py - Delivery Serializers
backend/api/serializers/delivery/delivery_detail.py - Reference Serializers
backend/api/serializers/reference/devilery_service.py - Analytics Serializers
backend/api/serializers/analytics.py
Delivery Domain
- Delivery Models
backend/api/models/delivery.py - Reference Models
backend/api/models/reference/devilery_service.py
Other components
- Administrator
- Courier
Connections 42
- Administrator → Web App Routing: uses
README.md - Web App Routing → Web Authentication: checks access
frontend/src/App.js - Web App Routing → Dashboard: routes to
frontend/src/App.js - Dashboard → Web Delivery Service: requests deliveries
frontend/src/pages/DashboardPage.js - Dashboard → Catalog Service: requests catalogs
frontend/src/pages/DashboardPage.js - Dashboard → Delivery Filters: renders
frontend/src/pages/DashboardPage.js - Dashboard → Delivery Table: renders
frontend/src/pages/DashboardPage.js - Dashboard → Charts and Stats: renders
frontend/src/pages/DashboardPage.js - Web Delivery Service → Web API Client: sends requests
frontend/src/services/deliveryService.js - Catalog Service → Web API Client: sends requests
frontend/src/services/catalogService.js - Web Authentication → Web Auth Service: authenticates
frontend/src/contexts/AuthContext.js - Web Auth Service → Web API Client: sends requests
frontend/src/services/authService.js - Web API Client → API Routing: HTTP API
- Courier → Mobile App: uses
README.md - Mobile App → Mobile Authentication: provides context
mobile/App.tsx - Mobile App → App Navigation: renders
mobile/App.tsx - Mobile Authentication → Mobile Auth Service: authenticates
mobile/src/contexts/AuthContext.tsx - Mobile Auth Service → Mobile API Client: sends requests
mobile/src/api/authService.ts - App Navigation → Delivery Screens: routes to
mobile/src/navigation/AppNavigator.tsx - App Navigation → Create Delivery: routes to
mobile/src/navigation/AppNavigator.tsx - App Navigation → Delivery Details: routes to
mobile/src/navigation/AppNavigator.tsx - App Navigation → Edit Delivery: routes to
mobile/src/navigation/AppNavigator.tsx - App Navigation → Courier Profile: routes to
mobile/src/navigation/AppNavigator.tsx - Edit Delivery → Mobile Delivery Service: updates delivery
mobile/src/screens/EditDeliveryScreen.tsx - Edit Delivery → Reference Service: loads references
mobile/src/screens/EditDeliveryScreen.tsx - Delivery Screens → Mobile Delivery Service: uses
- Create Delivery → Mobile Delivery Service: uses
- Delivery Details → Mobile Delivery Service: uses
- Mobile Delivery Service → Mobile API Client: sends requests
mobile/src/api/deliveryService.ts - Reference Service → Mobile API Client: sends requests
mobile/src/api/referenceService.ts - Mobile API Client → API Routing: HTTP API
- API Routing → Delivery API: dispatches
- API Routing → Reference API: dispatches
- API Routing → Analytics API: dispatches
- API Routing → User API: dispatches
- Delivery API → Delivery Serializers: serializes
backend/api/views/delivery.py - Delivery API → Delivery Models: queries
backend/api/views/delivery.py - Reference API → Reference Serializers: serializes
backend/api/views/reference/devilery_service.py - Reference API → Reference Models: queries
backend/api/views/reference/devilery_service.py - Analytics API → Analytics Serializers: serializes
- Analytics API → Delivery Models: analyzes
- Delivery Models → Reference Models: uses references
backend/api/models/delivery.py