A production-ready e-commerce REST API
A complete e-commerce backend in Node.js/Express: products, cart, orders, simulated checkout with coupon codes, dashboard stats and JSON persistence.
What's included
- Products — full CRUD with seed data
- Cart — per-customer via header
- Orders — create and list
- Checkout — simulated authorization + coupons
- Coupons — WELCOME10 / SAVE20 validation
- Dashboard — revenue, orders, top products
- Persistence — atomic JSON store
- 27 passing tests — node:test suite
Quick Start
npm install
npm start
Stack
Node.js 18+ · Express · pure ESM
Use cases
- MVP e-commerce backends
- Storefront APIs
- Order processing demos
- Learning REST design