This assignment is to practice Mongoose
- Step 1: yarn
- Step 2: yarn start
- Create a server in the
app.ts
- Connect to database in the
server.ts
- Create a product router with
GET
,POST
,PUT
andDELETE
- Create product model in the
Product.ts
file - Write logic to communicate with database in the
services
folder (product.ts
file) - Write logic to communicate with client (front-end) in the
controllers
folder (product.ts
file)
Create order and user router as well