How nbatho/ds03-build-a-ride-hailing-microservices-system-simulating-grab-uber works
This repository is a scaffold for a ride-hailing system: an API Gateway and seven independently run NestJS business services. The intended user-facing entry point is the Gateway, with identity, driver/location, trip, pricing, matching, payment, and notification capabilities represented by service modules. Most business handlers are empty, and the README explicitly says Gateway proxying and cross-service workflows remain to be implemented, so no downstream request chain is shown. The shared runtime provides bootstrap and health endpoints; edges reflect only imports or README statements shown here.
Main entry points: runtime.module.ts Runtime Module · src/app.module.ts Gateway App · proxy Proxy Module · src/app.module.ts Identity Service App
Components 23
API Gateway
- Gateway App
src/apps/api-gateway/src/app.module.ts - Proxy Module
src/apps/api-gateway/src/proxy - Proxy Controller
src/apps/api-gateway/src/proxy/proxy.controller.ts - Proxy Service
src/apps/api-gateway/src/proxy/proxy.service.ts
Shared Runtime
- Runtime Module
src/packages/runtime/src/runtime.module.ts - Runtime Bootstrap
src/packages/runtime/src/bootstrap.ts - Health Endpoints
src/packages/runtime/src/health.controller.ts - Health Contract
src/packages/contracts/src/dtos/health.response.ts
Identity
- User Identity
src/services/identity-user-service/src/users - Identity Service App
src/services/identity-user-service/src/app.module.ts
Mobility
- Driver / Location
src/services/driver-vehicle-location-service/src/drivers - Driver Service App
src/services/driver-vehicle-location-service/src/app.module.ts - Driver Matching
src/services/matching-service/src/matching - Matching Service App
src/services/matching-service/src/app.module.ts
Trip Operations
- Trip Booking
src/services/trip-booking-service/src/trips - Trip Service App
src/services/trip-booking-service/src/app.module.ts - Trip Pricing
src/services/pricing-service/src/pricing - Pricing Service App
src/services/pricing-service/src/app.module.ts - Simulated Payments
src/services/simulated-payment-service/src/payments - Payment Service App
src/services/simulated-payment-service/src/app.module.ts - Notifications
src/services/notification-service/src/notifications - Notification Service App
src/services/notification-service/src/app.module.ts
Other components
- Rider / Client
Connections 21
- Rider / Client → Gateway App: uses API
README.md - Gateway App → Runtime Module: configures runtime
src/apps/api-gateway/src/app.module.ts - Gateway App → Proxy Module: imports
src/apps/api-gateway/src/app.module.ts - Proxy Module → Proxy Controller: registers controller
src/apps/api-gateway/src/proxy/proxy.module.ts - Proxy Module → Proxy Service: registers service
src/apps/api-gateway/src/proxy/proxy.module.ts - Runtime Module → Health Endpoints: registers health
src/packages/runtime/src/runtime.module.ts - Health Endpoints → Health Contract: returns contract
src/packages/runtime/src/health.controller.ts - Identity Service App → Runtime Module: configures runtime
src/services/identity-user-service/src/app.module.ts - Identity Service App → User Identity: imports feature
src/services/identity-user-service/src/app.module.ts - Driver Service App → Runtime Module: configures runtime
src/services/driver-vehicle-location-service/src/app.module.ts - Driver Service App → Driver / Location: imports feature
src/services/driver-vehicle-location-service/src/app.module.ts - Matching Service App → Runtime Module: configures runtime
src/services/matching-service/src/app.module.ts - Matching Service App → Driver Matching: imports feature
src/services/matching-service/src/app.module.ts - Trip Service App → Runtime Module: configures runtime
src/services/trip-booking-service/src/app.module.ts - Trip Service App → Trip Booking: imports feature
src/services/trip-booking-service/src/app.module.ts - Pricing Service App → Runtime Module: configures runtime
src/services/pricing-service/src/app.module.ts - Pricing Service App → Trip Pricing: imports feature
src/services/pricing-service/src/app.module.ts - Payment Service App → Runtime Module: configures runtime
src/services/simulated-payment-service/src/app.module.ts - Payment Service App → Simulated Payments: imports feature
src/services/simulated-payment-service/src/app.module.ts - Notification Service App → Runtime Module: configures runtime
src/services/notification-service/src/app.module.ts - Notification Service App → Notifications: imports feature
src/services/notification-service/src/app.module.ts