Create API with nodejs, express and mongoDB
Steps :
- Create New Folder
- Check if Node and NPM is properly installed
- Open terminal or command prompt(windows) and navigate to your project folder
- Give the following commands to initialize the nodeJS project.
- "npm init" and give the information about project
"dependencies":{
"express":"*",
"body-parser":"*",
"mongoose":"*"
}
and then run "npm install" command in your terminal
the above commands will be install dependencies under node_modules folder.
Then create app.js file in the project folder