Answer the question
In order to leave comments, you need to log in
How to connect a project to mlab?
I cloned the repository from here https://github.com/brunobrito89/udemy-node-angular2.git by default this project is to run on the local mongodb machine and there is the following line: mongoose.connect('localhost:27017/node-angular');
but I need to connect to mlab. How would I do it?
If add
var uri = 'mongodb://admin:[email protected]:33338/nnnn4';
global.db = mongoose.connect(uri);
global.Schema = mongoose.Schema;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question