E-commerce
BD Muscle & Fitness
Full-stack store with COD checkout, dual-zone shipping, multi-role auth for Bangladesh market.



Overview
Full-stack e-commerce platform for fitness supplements targeting the Bangladesh market. Features COD-only checkout with dual shipping zones (Dhaka vs. outside Dhaka), dual-role authentication using NextAuth for admins and custom bcrypt for customers, and end-to-end type safety with Prisma-generated types and Zod validation across 23 API endpoints.
Hard Problems
Challenge
COD checkout without payment gateway in a market where card payments are rare.
Solution
Custom order logic with shipping zone detection, automatic order numbering, phone-based guest tracking.
Challenge
Dual authentication systems with full type safety.
Solution
NextAuth.js for admin routes, custom bcrypt for customer accounts with separate session management.
Key Decisions
| Decision | Chose | Over | Because |
|---|---|---|---|
| Architecture | Next.js unified | Separate backend + SPA | Server components reduce bundle size, unified codebase, built-in API routes eliminate backend deployment. |