I know this is kind of trivial, but I have been searching on google for a solution to this problem, this here is my first time deploying a mongodb+node.js application, I have succeeded in hosting a node.js application with static data, I have changed it to use a database -mongodb, I have created a mongodb database on mongolab.com, I have tried connecting but I keep getting this error
Database error
Error details: Error: failed to connect to [subdomain.mongolab.com:10027]
I have been searching over google, did not get a solution, have also contacted the site admin, my database connection and the entire code to fetch from mongodb remotely is here on github , thanks