I have already installed mongo. it is also working at this port. also contains a database test and collection student.
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/test";
MongoClient.connect(url, function (err, datbase) {
if (err) throw err;
var myStudent = { name: "Jai Sharma", address: "E-3, Arera Colony, Bhopal" };
db.collection("student").insertOne(myStudent, function (err, result) {
if (err) throw err;
console.log("1 Recorded Inserted");
db.close();
});
});