npm install express mongoose mongodb assert shortid body-parser
npm install -D nodemon
npm run dev
Use Postman to do a post request on : http://localhost:3000/add_user
To pass details of the user, write in this format in the body section and ensure the setings to be on raw and doc type json : {"firstname" : "", "lastname" : "", "email" : "", "phone" : "", "address" : ""}
Put request on : http://localhost:3000/update_user/
Pass data in the same format as in add_user
Get request on : http://localhost:3000/view_users
Get request on : http://localhost:3000/view_users/
Delete request on : http://localhost:3000/delete_user/
Post request on : http://localhost:3000/copy_user/