connect mongod instance code example
Example 1: how to connect remote mongodb in cmd
mongo "mongodb://[email protected]:28015/?authSource=admin"
Example 2: connect to mongo database
mongoose.connect(mongoURI);
mongo "mongodb://[email protected]:28015/?authSource=admin"
mongoose.connect(mongoURI);