Skip to content
View gmlevit's full-sized avatar
  • Senior Software Engineer
  • United States

Block or report gmlevit

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. create-mongodb-database create-mongodb-database Public

  2. Function that creates a MongoDB data... Function that creates a MongoDB database. It authenticates a db user or creates one if it doesn't exist
    1
    function createMongoDb(callback) {
    2
        var Db = require('mongodb').Db;
    3
        var Server = require('mongodb').Server;
    4
        var dbName = 'testdb', dbHost = 'localhost', dbPort = '27017';
    5
        var dbUser = 'testuser', dbPassword = 'testpassword';