Full-Stack E-Commerce Template: Next.js + NestJS + PostgreSQL (Storefront + Admin Dashboard)
Launch your online store faster with a complete, full-stack e-commerce codebase: a Next.js storefront, a full admin dashboard, and a NestJS REST API on PostgreSQL. Clean TypeScript, modular structure, ready to customize and deploy.
## What you get
**Storefront (Next.js 16, React 19, Tailwind CSS 4, Redux Toolkit)**
- Home page with an admin-editable hero banner
- Product listing, product details, search, and nested categories
- Cart, checkout, and order confirmation
- Wishlist and product reviews with ratings
- Customer profile, saved addresses, and order history
- Email/password sign-up and login, Google OAuth, and password reset by email (Resend)
**Admin dashboard**
- Products: create, edit, delete, multiple images, variants (size/color/SKU), price overrides, and discount %
- Inventory: stock levels, restocking, and a stock movement history
- Orders: view details and update status (Pending, Paid, Shipped, Delivered, Cancelled)
- Revenue overview
- Coupons: percentage-based, activate/deactivate, expiry dates
- Review moderation, customer management, and store settings (name, email, currency)
**Backend (NestJS 12, PostgreSQL, Prisma)**
- Modular REST API: auth, products, categories, cart, orders, coupons, reviews, wishlist, addresses, settings
- JWT authentication with role-based access (Customer / Admin)
- Request validation, global error handling, and rate limiting on sensitive endpoints
- Bcrypt password hashing and hashed reset tokens
- Seed script with demo products, categories, and users
- Docker and docker-compose included
## Documentation
A detailed guide covers setup, environment variables, database model, every API endpoint, business rules, and deployment.
## What's not included
- No online payment gateway (Stripe, PayPal, etc.). Checkout currently supports Cash on Delivery, and the order flow is structured so you can plug in a gateway.
- No multi-language or multi-vendor support.
- Test coverage is minimal, so add your own tests before going to production.
## Requirements
Node.js 20+, a PostgreSQL database, and optional Google OAuth and Resend accounts for social login and emails.
## License: Single Project
Use it for one end product: your own store or one client project. You may not resell, share, or publish the source code. Need more? Extended and Full-Rights licenses are available.
Instant download after purchase. Questions before buying? Message me anytime.