How atisanginn/deliveryplatform works
This is a multi-role delivery platform: customers browse merchants and place orders, drivers claim and update deliveries, and administrators manage platform operations. The principal order path runs from the customer app through the API’s order controller and service, which validates menu prices, persists the order, and returns a PayFast payment form. Payment callbacks, catalog management, authentication, and live order updates are separate capabilities. Several frontend-to-API and payment-callback relationships are not shown in the sampled excerpts, so those links are marked unverified.
Main entry points: ApplicationDbContext.cs Application Database · OrderService.cs Order Service · Program.cs API Composition · AuthService.cs Auth Service
Components 22
Web Apps
- Customer App
DeliveryPlatform/CustomerApp/app.js - Admin Web
DeliveryPlatform/AdminWeb/app.js - Driver App
DeliveryPlatform/DriverApp/app.js
API Endpoints
- Authentication API
DeliveryPlatform/DeliveryPlatform.Api/Controllers/AuthController.cs - Merchant API
DeliveryPlatform/DeliveryPlatform.Api/Controllers/MerchantController.cs - Order API
DeliveryPlatform/DeliveryPlatform.Api/Controllers/OrderController.cs - Payment API
DeliveryPlatform/DeliveryPlatform.Api/Controllers/PaymentController.cs - Upload API
DeliveryPlatform/DeliveryPlatform.Api/Controllers/UploadController.cs - Users API
DeliveryPlatform/DeliveryPlatform.Api/Controllers/UsersController.cs - API Composition
DeliveryPlatform/DeliveryPlatform.Api/Program.cs
Domain Services
- Auth Service
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/AuthService.cs - Auth Contract
DeliveryPlatform/DeliveryPlatform.Api/Services/Interfaces/IAuthService.cs - Order Service
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/OrderService.cs - Order Contract
DeliveryPlatform/DeliveryPlatform.Api/Services/Interfaces/IOrderService.cs
Persistence and Realtime
- Delivery Domain Models
DeliveryPlatform/DeliveryPlatform.Api/Models - Application Database
DeliveryPlatform/DeliveryPlatform.Api/Data/ApplicationDbContext.cs - Database Initializer
DeliveryPlatform/DeliveryPlatform.Api/Data/DbInitializer.cs - Live Order Hub
DeliveryPlatform/DeliveryPlatform.Api/Hubs/OrderHub.cs
Other components
- Customer
- Driver
- Administrator
- PayFast
Connections 26
- Customer → Customer App: uses
- Driver → Driver App: uses
- Administrator → Admin Web: uses
- Customer App → Order API: submits orders
- Customer App → Authentication API: authenticates
- Admin Web → Merchant API: manages catalog
- Driver App → Order API: updates deliveries
- Authentication API → Auth Service: delegates auth
DeliveryPlatform/DeliveryPlatform.Api/Controllers/AuthController.cs - Auth Service → Auth Contract: implements
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/AuthService.cs - Auth Service → Application Database: reads and writes
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/AuthService.cs - Order API → Order Service: delegates orders
DeliveryPlatform/DeliveryPlatform.Api/Controllers/OrderController.cs - Order Service → Order Contract: implements
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/OrderService.cs - Order Service → Application Database: reads and writes
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/OrderService.cs - Order Service → Live Order Hub: broadcasts updates
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/OrderService.cs - Order Service → PayFast: builds payment form
DeliveryPlatform/DeliveryPlatform.Api/Services/Implementations/OrderService.cs - Merchant API → Application Database: reads and writes
DeliveryPlatform/DeliveryPlatform.Api/Controllers/MerchantController.cs - Users API → Application Database: reads and writes
DeliveryPlatform/DeliveryPlatform.Api/Controllers/UsersController.cs - Payment API → Application Database: reads and writes
DeliveryPlatform/DeliveryPlatform.Api/Controllers/PaymentController.cs - Payment API → Live Order Hub: notifies clients
DeliveryPlatform/DeliveryPlatform.Api/Controllers/PaymentController.cs - Live Order Hub → Application Database: syncs order state
DeliveryPlatform/DeliveryPlatform.Api/Hubs/OrderHub.cs - API Composition → Application Database: configures
DeliveryPlatform/DeliveryPlatform.Api/Program.cs - API Composition → Auth Service: registers
DeliveryPlatform/DeliveryPlatform.Api/Program.cs - API Composition → Order Service: registers
DeliveryPlatform/DeliveryPlatform.Api/Program.cs - API Composition → Database Initializer: runs initialization
DeliveryPlatform/DeliveryPlatform.Api/Program.cs - API Composition → Live Order Hub: maps hub
DeliveryPlatform/DeliveryPlatform.Api/Program.cs - Database Initializer → Application Database: seeds data
DeliveryPlatform/DeliveryPlatform.Api/Data/DbInitializer.cs