This is an basic ecommerce website built in nodejs.
- Run 'cd server'
- Add .env file
- Copy .env.example to .env
- Add DATABASE_URL - URL for mongodb server
- Run 'npm install'
- Run 'npm run dev'
- /api/items (GET) - Get a list of all the items
- /api/cart/add (POST) - Add Items to the cart
- /api/cart/checkout (POST) - Checkout from the cart and validate coupons
- /discount/generate (POST) - Generate a discount code
- Run 'npm run test'
- Typescript - Language
- Express.js - Backend
- MongoDB - Database
- Prisma - ORM
- Jest - Unit Testing