ArtisanBase - Headless E-Commerce
A scalable e-commerce solution with a NestJS backend and distinct Next.js frontends for admins and storefronts.
NestJSNext.jsTypeScriptPrismaSupabase
Architectural Overview
Artisan Base represents a modern 'Headless' e-commerce approach. Instead of a monolith, I decoupled the backend (NestJS) from the frontend (Next.js), allowing for independent scaling.
Key architectural decisions included using Redis for caching high-frequency product reads and implementing a Rotating Refresh Token strategy for secure, long-lived user sessions.
Key Implementations
Headless Architecture (Decoupled Frontend/Backend)
Redis Caching for High-Performance Reads
Secure JWT Authentication with Rotation
Role-Based Access Control (RBAC)
Type-Safe Database Access with Prisma
System Architecture Gallery
Tech Stack
Backend
NestJSTypeScriptPrisma
Frontend
Next.jsTypeScriptTailwind CSSReact Query
Database
PostgreSQL (Supabase)Redis
DevOps
VercelRender