How abhishek10600/fooddeliveryapplication-advancedbackendlearning works
This is a TypeScript/Express backend for a restaurant and customer platform, with identity, profile, restaurant-management, and shared infrastructure concerns. The visible request path is HTTP routing to controllers and use cases, with persistence and object storage available behind the domain features. The tree also shows queue workers and dependency-registration modules, but no README or sampled source establishes their full product flow; those links are omitted rather than inferred.
Main entry points: app.ts Express app · main.ts Server startup · refresh-token.controller.ts Identity controllers · refresh-session.repository.ts Refresh sessions
Components 24
Application runtime
- Server startup
backend/src/main.ts - Express app
backend/src/app/app.ts
Identity and access
- Identity routes
backend/src/modules/identity/presentation/routes/identity.route.ts - Identity controllers
backend/src/modules/identity/presentation/controllers/refresh-token.controller.ts - Identity use cases
backend/src/modules/identity/application/use-cases - Identity domain
backend/src/modules/identity/domain - Refresh sessions
backend/src/modules/identity/infrastructure/persistence/prisma/refresh-session.repository.ts
Customer and restaurant
- Customer routes
backend/src/modules/customer/presentation/routes/customer.route.ts - Customer controllers
backend/src/modules/customer/presentation/controllers - Customer use cases
backend/src/modules/customer/application/use-cases - Customer repository
backend/src/modules/customer/infrastructure/persistence/prisma/customer.respository.ts - Restaurant routes
backend/src/modules/restaurent/presentation/routes/restaurant.route.ts - Restaurant controllers
backend/src/modules/restaurent/presentation/controllers/restaurant-profile-update.controller.ts - Restaurant use cases
backend/src/modules/restaurent/application/use-cases - Restaurant repository
backend/src/modules/restaurent/infrastructure/persistence/prisma/restaurant.repository.ts
Shared infrastructure
- Prisma database
backend/src/infrastructure/database/database.service.ts - File storage contract
backend/src/shared/contracts/storage/file-storage.ts - R2 storage
backend/src/infrastructure/storage/r2/r2.file-storage.ts - Job queues
backend/src/infrastructure/queue/queues - Queue workers
backend/src/infrastructure/queue/workers - HTTP security
backend/src/infrastructure/security/security.ts - Request context
backend/src/infrastructure/observeability/request-context/request-context.middleware.ts - Error handling
backend/src/app/middleware/error-handler.middleware.ts
Other components
- HTTP client
Connections 14
- HTTP client → Express app: sends requests
backend/src/app/app.ts - Server startup → Express app: starts
backend/src/main.ts - Express app → HTTP security: registers
backend/src/app/app.ts - Express app → Request context: installs
backend/src/app/app.ts - Express app → Identity routes: routes identity
backend/src/app/app.ts - Express app → Customer routes: routes customers
backend/src/app/app.ts - Express app → Restaurant routes: routes restaurants
backend/src/app/app.ts - Express app → Error handling: handles errors
backend/src/app/app.ts - Identity controllers → Identity use cases: executes
backend/src/modules/identity/presentation/controllers/refresh-token.controller.ts - Refresh sessions → Prisma database: reads and writes
backend/src/modules/identity/infrastructure/persistence/prisma/refresh-session.repository.ts - Customer controllers → Customer use cases: executes
backend/src/modules/customer/presentation/controllers/update-customer-profile.controller.ts - Restaurant controllers → Restaurant use cases: executes
backend/src/modules/restaurent/presentation/controllers/restaurant-profile-update.controller.ts - File storage contract → R2 storage: implemented by
backend/src/infrastructure/storage/r2/r2.file-storage.ts - Job queues → Queue workers