I have created a node app that uses a mongodb database, but I dont know how to connect to a database that is running on a virtual machine. Because I am poor, I decided to put my mongodb database on a virtual machine on Windows Azure. My Node app is hosted on a heroku server, and now I'd like to connect the two together. How do I connect the node app to the mongodb database?
This is the guide I used to create my mongodb database: http://docs.mongodb.org/ecosystem/tutorial/install-mongodb-on-linux-in-azure/
I am guessing I need to put in the connection URL obtained from the guide above (mongodb://mongodbrs.cloudapp.net:27018) into my node app when I call "mongoose.connect([URL])". Is this right? If so, how would I authenticate with the windows azure virtual machine?
#poorpeopleproblems