dependencies in package.json
"body-parser": "^1.19.0",
"ejs": "^2.7.1",
"express": "^4.17.1",
"express-validator": "^6.2.0",
"mongoose": "^5.7.3
in cmd
- npm init
- npm i body-parser@1.19.0
- npm i ejs@2.7.1
- npm i express@4.17.1 ..
create filename.js => (to connect and create database inserting documents in collection. you could see in https://dev.to/saurabh37414118 , this => https://dev.to/saurabh37414118/crud-mongodb-500d)
- node filename
Top comments (0)