This exercise is your first foray into implementing mongoose into your express server. You will be making a CRUD e-store inventory. Use postman to interface with all the items in your database.
- Build a new server and connect it to mongodb.
- In a folder called
modelscreate a file called
inventory.jsand define a
InventorySchemafor items in your store. Export a
InventoryModelat the bottom.
- Create a new folder called
routescontaining a file
- Create all the necessary routes to make a fully CRUD application (GET, GET(one), POST, PUT, DELETE, ).
- Populate your inventory using Postman. Be sure to test each endpoint.