How sumeshpatva97/ecommerce-api-ci works
This repository is an early-stage Node.js/Express REST API scaffold for a jewellery e-commerce platform, not yet a business-capable commerce backend. Its current workflow is configuration and dependency setup, HTTP startup, request middleware, then health or versioned API routing; the v1 router has no business routes yet. The graph also shows readiness and database scaffolding plus documented provider/job extension points. Evidence is limited to the README and sampled/indexed source; future business flows and provider calls are not inferred.
Main entry points: server.ts Server entrypoint · app.ts Express application · middleware HTTP middleware · health.routes.ts Health routes
Components 20
Runtime and HTTP
- Express application
src/app.ts - HTTP middleware
src/core/middleware - Health routes
src/core/health/health.routes.ts - Versioned API router
src/routes/v1.ts - Server entrypoint
src/server.ts
Core platform
- Configuration
src/core/config/env.ts - Structured logging
src/core/logger/logger.ts - Request context
src/core/logger/context.ts - Readiness checks
src/core/health/readiness.ts - HTTP lifecycle
src/core/lifecycle/httpServer.ts - Error responses
src/core/middleware/errorHandler.ts - Response envelopes
src/core/http/envelope.ts - Prisma database client
src/core/db/prisma.ts
Integration scaffolds
- Email provider adapter
src/integrations/email/emailProvider.ts - Payments provider adapter
src/integrations/payments/paymentProvider.ts - WhatsApp provider adapter
src/integrations/whatsapp/whatsappProvider.ts - Background jobs scaffold
src/jobs
Other components
- Storefront client
- Admin client
- MySQL
Connections 16
- Storefront client → Express application: calls REST
README.md - Admin client → Express application: calls REST
README.md - Server entrypoint → Configuration: loads
src/server.ts - Server entrypoint → Structured logging: creates
src/server.ts - Server entrypoint → Prisma database client: creates and connects
src/server.ts - Server entrypoint → Readiness checks: registers check
src/server.ts - Server entrypoint → Express application: builds
src/server.ts - Server entrypoint → HTTP lifecycle: starts and shuts down
src/server.ts - Express application → HTTP middleware: registers
src/app.ts - Express application → Health routes: mounts
src/app.ts - Express application → Versioned API router: mounts
src/app.ts - Health routes → Readiness checks: evaluates
src/core/health/health.routes.ts - HTTP middleware → Error responses: handles errors
src/app.ts - Error responses → Response envelopes: builds response
src/core/middleware/errorHandler.ts - Structured logging → Request context: reads context
src/core/logger/logger.ts - Prisma database client → MySQL: connects via Prisma
README.md