This project is made with the help of Claude (1M context).
Enterprise multi-tenant commerce platform — a unified backend for e-commerce, food delivery, rentals, streaming, POS, marketplace, loyalty, billing, and analytics.
A NestJS-based REST + WebSocket backend with 60+ feature modules, multi-tenant organization isolation, real-time notifications, payment processing, scheduled jobs, and comprehensive admin tooling. Powers diverse business models from a single codebase.
- Multi-tenant architecture (organizations, settings, RBAC)
- JWT auth + Passport OAuth (Google, GitHub, Facebook)
- WebSocket gateway with Socket.io and Ably pub/sub
- Background workers (email, notifications, webhooks, campaigns)
- Scheduled cron jobs (cleanup, aggregation, plan expiry)
- Catalog, cart, orders, inventory, suppliers, purchase orders
- Razorpay integration (payments, billing, subscriptions, refunds)
- Loyalty programs, coupons, referrals, gift cards
- Delivery tracking, property reservations, vacation rentals
- Food service: meal plans, subscriptions, POS
- Media: movies, watch sessions, streaming analytics
- Analytics: usage tracking, campaigns, segments
- Compliance: audit logs, KYC, super-admin controls
- Framework: NestJS 11 (TypeScript)
- Database: PostgreSQL via Prisma 6.19
- Realtime: Socket.io 4.8, Ably 2.20
- Payments: Razorpay 2.9
- Email: Resend 6.10
- Auth: JWT + Passport.js (Google/GitHub/Facebook)
- Testing: Jest
- Deploy: Docker + Vercel
npm install
cp .env.example .env
docker-compose up -d # PostgreSQL
npx prisma migrate dev
npx prisma db seed
npm run start:devnpm run start:dev— dev server with hot reloadnpm run build— production buildnpm run start:prod— start production servernpm run test— run Jest testsnpm run test:e2e— end-to-end testsnpx prisma migrate dev— apply migrationsnpx prisma studio— DB GUI
src/
├── modules/ # 60+ feature modules (auth, catalog, payments, billing, ...)
├── workers/ # Background processors
├── jobs/ # Scheduled crons
├── gateways/ # WebSocket gateways
└── main.ts # App bootstrap
prisma/
├── schema.prisma # Full data model (~184KB)
├── migrations/ # 28+ migration files
└── seed.ts # Seed data