A minimal transactional backend inspired by core e-commerce order logic.
Built to model atomic checkout, inventory reservation, and safe order cancellation.
- Node.js
- TypeScript
- Express
- PostgreSQL
- Prisma
- Zod
- JWT
- User registration & login (Customer / Seller)
- Seller product management
- Inventory management (available / reserved)
- Customer cart
- Atomic checkout (transactional)
- Order cancellation with inventory restoration
- Inventory never goes negative
- Checkout is atomic
- Order price is snapshotted at purchase time
- Cancel restores reserved stock safely
- Invalid state transitions fail
- Payments
- Shipping
- Refund system
- Notifications
- Frontend
- Microservices
pnpm install
docker compose up -d
pnpm prisma migrate dev
pnpm run dev