CRUD Store
Exercise###
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.
Part One
- Build a new server and connect it to mongodb.
- In a folder called
modelscreate a file calledinventory.jsand define aInventorySchemafor items in your store. Export aInventoryModelat the bottom.
Part Two
- Create a new folder called
routescontaining a fileinventory.js. - 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.