angular-app / angular-app

Reference application for AngularJS
MIT License
5.86k stars 1.76k forks source link

Unable to connect to DB on mLab #286

Open go-green opened 7 years ago

go-green commented 7 years ago

I want to deploy this locally and followed the instructions. I got stuck where I have to create a DB on mLab and connect to it. I got the API key, but unable to find the URL similar to "dbUrl: 'https://api.mongolab.com/api/1" from mLab. They have two ways to connect apparently, using mongo shell and Mongo DB URI. nothing starts with HTTPS://..... Secondly, what is a user collection and how can I create a one from mLab?

mongo: { dbUrl: 'https://api.mongolab.com/api/1', // The base url of the MongoLab DB server apiKey: 'YOUR_API_KEY_HERE', // Our MongoLab API key }, security: { dbName: 'YOUR_DB_NAME_HERE', // The name of database that contains the security information usersCollection: 'users' // The name of the collection contains user information },

jordanburnam commented 6 years ago

I too am having this issue...have you been able to figure this out?

jwest80 commented 6 years ago

You should change the URL to... https://api.mlab.com/api/1

It did not help me, but I think I am having proxy issues.