This project for create user and management orders by using mongoose schema for data modeling, typescript interface for type handling, and third party external validator zod for extra securing data.
git clone https://github.com/developeremdad/create-user-order-with-ts
cd create-user-order-with-ts
npm install
code .
//for ts quick run before build
npm run start:dev
npm run build
npm start
- MongoDB (Database)
- Express
- Mongoose
- Typescript
- Zod (validation)
- POST /api/users
- GET /api/users
- GET /api/users/:userId
- PUT /api/users/:userId
- DELETE /api/users/:userId
- PUT /api/users/:userId/orders
- GET /api/users/:userId/orders
- GET /api/users/:userId/orders/total-price
Happy Coding - Developeremdad 🧑💻