- Clone The Repo
git clone https://github.com/tauhid-hasan-dev/mongoose-express-crud-a2-L2-B2
- Install Node Modules
npm install
- Start the project locally
npm run start:dev
- Implement error handling by Zod
- CRUD operations by MongoDB query operators
- TypeScript as the programming language.
- Express.js as the web framework.
- Mongoose as the Object Data Modeling (ODM) and validation library for MongoDB.
- /api/users/ (Post)
- /api/users/ (GET)
- /api/users/101(Single GET)
- /api/users/101 (PUT)
- /api/users/101 (DELETE)
- /api/users/101/orders (PUT)
- /api/users/101/orders (GET)
- /api/users/101/orders/total-price (GET)