Ch 0: Alternative to using MongoDB Atlas Cluster


I created an Atlas Cluster but unfortunately I am not able to connect to it from shell. I get the following error
2019-10-18T14:30:58.288-0400 E QUERY [js] Error: connect failed to replica set mflix-shard-0/,, :

I believe it is due to the firewall settings since I cannot access
Unfortunately, I cannot change the firewall settings. Can I use a local database instead of Atlas for the course and if so, how do I download the sample_mflix dataset and what would be the connection settings to use in the mflix/src/main/resources file?

Hey @Angeline_95507

For the M220 courses you would be able to launch a local mongod. Just import the data set to your local instance and make your the connection string in your environment file points to your local mongod.

You would follow the outline in the README.rst file still but have the connection string pointing to your local db

If you need more help feel free to ask.

1 Like