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
models
create a file calledinventory.js
and define aInventorySchema
for items in your store. Export aInventoryModel
at the bottom.
Part Two
- Create a new folder called
routes
containing 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.