Skip to content

Commit

Permalink
fix: PR review corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Dereje1 committed May 22, 2019
1 parent 3218579 commit 438396b
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -28,7 +28,7 @@ We are going to show you how to:

- Create a MongoDB Atlas account.
- Create a new cluster.
- Create a new admin user on the database, so you can access it.
- Create a new user on the database.
- Whitelist your IP address.
- Connect to your cluster.

Expand All @@ -53,13 +53,15 @@ Once you open the MongoDB Atlas page, you should sign up for a new account.
- You should now see the message, `Your cluster is being created -
New clusters take between 7-10 minutes to provision.` Wait until the cluster is created before going to the next step.

### Create a new admin user on the database.
### Create a new user on the database.

- You should be able to see the green **Get Started** button on the bottom left of your screen, you can click this button to see at which step of the process your are in, if you click on it now, you can see the next step is to **Create your first database user**, go ahead and click on that step.
- Follow the instructions by clicking on the `Security` tab.
- Click on the green **ADD NEW USER** button.
- Enter a user name and password and then select **Atlas Admin** under user privileges, remember to store your username and password somewhere safe.
- Enter a user name and password and then select **Read or write to any database** under user privileges, remember to store your username and password somewhere safe.
- Click on the **ADD USER** green button in the bottom right of the modal.

Note: You can always upgrade your privileges to the **Admin** level, however, it is best practice to give permissions to a user on an as-needed basis for security reasons.

### Whitelist your IP address

Expand All @@ -70,11 +72,11 @@ New clusters take between 7-10 minutes to provision.` Wait until the cluster is

### Connect to your cluster

- Clicking on the green **Get Started** button in the bottom left of your screen should now show you the next step, **Connect to your cluster**, click on it.
- Clicking on the green **Get Started** button in the bottom left of your screen should now show you the final step, **Connect to your cluster**, click on it.
- Follow the instructions by clicking on the `Connect` button in the `Sandbox` section.
- In the pop-up modal, click on **Connect Your Application**, a connection string will be displayed, you can copy that connection string by clicking on the `copy` button.
- This will be the final URI that you will use to connect to your db, it will look something like this `mongodb+srv://<user>:<password>@<cluster#-dbname>.mongodb.net/test?retryWrites=true`, notice that the `user` and `cluster#-dbname` fields are already filled out for you, all you would need to replace is the `password` field with the one that you created in the previous step.

- That's it! you now have the URI you will add to your application to connect to your database. Keep this URI safe somewhere, so you can use it later!
- That's it! You now have the URI you will add to your application to connect to your database. Keep this URI safe somewhere, so you can use it later!
- Feel free to create separate databases for different applications if they need a separate database. You just need to create a new project under your current MongoDB Atlas account, build a new cluster, add a new user, whitelist your IP addresses and finally connect to your cluster to obtain the new URI.

0 comments on commit 438396b

Please sign in to comment.