- create a
.env
file. - add
MONGO_URI
variable and store your mongoDB collection url to it. - run command
npm install
. - run command
npm start
ornodemon app.js
. - go to
local host
port3000
.
- 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
.