- create a
.envfile. - add
MONGO_URIvariable and store your mongoDB collection url to it. - run command
npm install. - run command
npm startornodemon app.js. - go to
local hostport3000.
- create new product on your database by using
createProduct. - get all the products you have by using
getAllProduct. - get a single product you have by their id by using
getProduct. - update your product detail by using
updateProduct. - delete your product by using
deleteProduct.