-
Notifications
You must be signed in to change notification settings - Fork 2
Setting up a cluster
If you already have set up a cluster or plan to use MongoDD locally and not the online cluster, you can skip this part.
First, head over to the registration site and create a new account. (Keep in mind that, unless you upgrade, the sandbox tier is limited to 512mb, but that's more than you think)
They will walk you through the rest of the set up. Once you're done, they will create a cluster for you - that may take a couple minutes.
Once the cluster is created, we will want to add a database to it:
Click on Collections
Add my own data
Here you can enter a name for your database, the collection doesn't really matter but you need to enter one.
Now, go back to the overview tab and click on Connect. They will ask you to set up a new user and whitelist an IP to allow access to the database. Once you've set up a user, we will need our Mongo URI to connect to the database.
Connect your application
Select the Node.js driver and the latest version, then copy the displayed URI, we will need this URI to connect to our database in the next chapter.
\