npm init -y - To install all package.json file npm i express - To install all nodes modules and express node .js - Generally to run all the server
npm i nodemon - Same as frontend liveserver auto sync and up to date makes changes in pacakage.json files as follows: "scripts": { "start": "node index.js", "dev": "nodemon index.js" }, npm run dev - to run server
npm i dotenv - to export enviornment variables seperately npm mongoose - to connect server or application with MongoDB database
Additionally project needs
- MongoDB setup
- MongoDB Shell
- MongoDB compass
- Postman API setup
//routes to test http://localhost:3000/api/v1/createTodo http://localhost:3000/api/v1/GetTodo http://localhost:3000/api/v1/getTodo/:id http://localhost:3000/api/v1/updateTodo/:id http://localhost:3000/api/v1/deleteTodo/:id