Home > Nodejs---MongoDB

Nodejs---MongoDB

Nodejs---MongoDB is a project mainly written in JavaScript, it's free.

A simple Nodejs script to connect to MongoDB

Example use of NodeJS and MongoDB

Intruction:

To run the script, you can type:

$ node node_mongo.js

You can always see the data changes by using MongoDB. To start MongoDB on your local server, run it as a daemon:

$ sudo mongodb

and then run the MongoDB console:

$ mongo

You will then be given a MongoDB prompt.