Example node js working with mongodb
1- Install mongo at your machine and run it
To run: mongod --dbpath /repos/node_mongo/data
2- Perform npm -i in this project
3- Run each example!
enjoy
I recommend install Robo 3t ( https://robomongo.org/ ) or studio3t ( https://studio3t.com/download/ ) in order to connect to Mongo and test