This is a tutorial to run MongoDB with Nodejs.
-
First install Nodejs https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
-
Install mongodb http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
-
Install Mongoose to conect the nodejs to mongoDB http://mongoosejs.com/docs/index.html
-
To run the write example, run nodejs writeToDb
-
To run the read example, run nodejs queryDb.js