MongoDB

Setup MongoDB
https://www.youtube.com/watch?v=W9LgdiysafA&index=15&list=PLdtEimKxDSoXDq-zE2YZuJtbERh4x0lxm

>mongod --dbpath="C:\mongodb"

https://mongodb.github.io/node-mongodb-native/api-articles/nodekoarticle1.html
http://www.guru99.com/node-js-mongodb.html

MongoDB In 30 Minutes
https://www.youtube.com/watch?v=pWbMrx5rVBE

Mongo is unable to start
http://stackoverflow.com/questions/41334164/mongo-is-unable-to-start


var MongoClient = require('mongodb').MongoClient;
var assert = require('assert');

var url = 'mongodb://localhost:27017/MyDb';
MongoClient.connect(url, function(err, db) {
    assert.equal(err, null);
    console.log("Connected correctly to server.");

    var collection = db.collection('tutorials');

    collection.insertOne({topic: ".Net", description:'Framework From Microsoft'},
        function (err, docs) {
        assert.equal(err, null);
        console.log('Inserted');
    });

    collection.find({}).toArray(function (err, docs) {
        assert.equal(err, null);
        console.log('Found: ');
        console.log(docs);
    });

    db.close();
});