To start the server
run npm i
To install node modules
then run npm install express body-parser mongoose --save
To run the server use - node index.js
Our todo API will have the following endpoints
GET /todos //getting all todos POST /todos //adding a new todo PUT /todos/:id //updating a todo with the matching id DELETE /todos/:id/delete //deleting a todo with matching id