I have a node server and until now my database was local, but now I need it to be on mongolab.
Could you tell me how to connect to the database, please?
I have a node server and until now my database was local, but now I need it to be on mongolab.
Could you tell me how to connect to the database, please?
Use var db = mongojs('mongodb://USERNAME:PASSWORD@ds043497.mongolab.com:43497/heroku_app14986764', ['CollectionName']);
And you'll be connected. I did not test this.