This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createMongoDb(callback) { | |
var Db = require('mongodb').Db; | |
var Server = require('mongodb').Server; | |
var dbName = 'testdb', dbHost = 'localhost', dbPort = '27017'; | |
var dbUser = 'testuser', dbPassword = 'testpassword'; | |
var db = new Db(dbName, new Server(dbHost, dbPort)); | |
// Connect to the database | |
db.open(function (err, db) { |