DEV Community

javadev16
javadev16

Posted on

Node JS modules and connect Mongodb

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

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)
Alt Text

  • node filename

Top comments (0)