Overview
E-Dukkan is a live multi-tenant SaaS e-commerce platform that lets merchants create, manage, and operate their own online stores on shared infrastructure. It covers store management, product catalog and merchandising, orders, payments, billing and subscriptions, content management, and customer-facing storefronts. It currently serves 10+ active merchants on the free tier.
My role
I designed the architecture from the database layer to the frontend applications, then built and deployed the platform.
Highlights
- Multi-tenant TypeScript monorepo (NestJS, Next.js, Turborepo) with shared packages for data access, API contracts, typed clients, UI, and localization.
- Domain-driven modular monolith with 50+ business entities across commerce, billing, content, identity, and operations.
- Backend split by audience (public storefront, merchant dashboard, platform administration), each with dedicated NestJS controllers over a shared business layer.
- Request-scoped multi-currency pricing with decimal-safe math, plan-limit enforcement guards, and wildcard event-driven notifications (FCM, Telegram, WhatsApp, SMTP).
- A Model Context Protocol (MCP) server generated dynamically from the OpenAPI specs, secured by OAuth 2.1 and scoped, hashed API keys for AI-agent access.
- CRUD and data-view system on Next.js Server Components and TanStack Query with URL-synced state.
Stack
TypeScript, NestJS, Prisma, PostgreSQL, Next.js, React, TanStack Query, Turborepo, Docker, Coolify, S3-compatible storage.