How mahmudulhasanmaruf78/smart-pick works
Smart Pick & Drop is a delivery-management REST API. Customers and riders register or sign in, customers book and track consignments, verified riders claim and progress deliveries, and admins manage rider verification, users, zones, and system metrics. The map separates identity, user profiles, zone rates, order operations, and administration, with a shared persistence layer. README documents capabilities beyond the sampled excerpts; edges are limited to relationships shown in source or explicitly described there.
Main entry points: auth.service.ts Registration and Login · orders.service.ts Booking and Delivery Lifecycle · admin.service.ts Metrics and Rider Verification · users.service.ts User and Rider Records
Components 18
Identity and Access
- Authentication API
src/auth/auth.controller.ts - Registration and Login
src/auth/auth.service.ts - JWT and Role Guards
src/common/guards
User Accounts
- Profile API
src/users/users.controller.ts - User and Rider Records
src/users/users.service.ts - Account Data
src/users/entities
Zones and Rates
- Zone API
src/zones/zones.controller.ts - Zone Rates and Seeding
src/zones/zones.service.ts - Delivery Zones
src/zones/entities/delivery-zone.entity.ts
Delivery Operations
- Orders API
src/orders/orders.controller.ts - Booking and Delivery Lifecycle
src/orders/orders.service.ts - Consignment Records
src/orders/entities/order.entity.ts - Email Service
Administration
- Admin API
src/admin/admin.controller.ts - Metrics and Rider Verification
src/admin/admin.service.ts
Other components
- Customer or Rider
- Administrator
- Platform Database
Connections 21
- Customer or Rider → Authentication API: registers or signs in
README.md - Authentication API → Registration and Login: delegates
src/auth/auth.controller.ts - Registration and Login → User and Rider Records: looks up and creates users
src/auth/auth.service.ts - Registration and Login → Customer or Rider: returns access token
src/auth/auth.service.ts - Customer or Rider → Profile API: manages profile
README.md - Profile API → User and Rider Records: delegates
src/users/users.controller.ts - Administrator → Admin API: manages platform
README.md - Admin API → Metrics and Rider Verification: delegates
src/admin/admin.controller.ts - Customer or Rider → Zone API: views zones
README.md - Administrator → Zone API: manages rates
README.md - Zone API → Zone Rates and Seeding: delegates
src/zones/zones.controller.ts - Customer or Rider → Orders API: books or tracks delivery
README.md - Orders API → Booking and Delivery Lifecycle: delegates
src/orders/orders.controller.ts - Booking and Delivery Lifecycle → Zone Rates and Seeding: uses zone rates
README.md - Booking and Delivery Lifecycle → Customer or Rider: notifies by email
src/orders/orders.service.ts - Metrics and Rider Verification → Customer or Rider: verifies or suspends
README.md - Registration and Login → Platform Database: persists identities
src/auth/auth.service.ts - User and Rider Records → Platform Database: reads and writes accounts
src/users/users.service.ts - Booking and Delivery Lifecycle → Platform Database: reads and writes orders
src/orders/orders.service.ts - Zone Rates and Seeding → Platform Database: stores rate cards
- Metrics and Rider Verification → Platform Database: queries system records