# Creating a MongoDB database

### Account&#x20;

First we are going to want to go to [MongoDB Cloud](https://cloud.mongodb.com). You should see a screen that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_Pm6AxzTXPx.png>" %}
MongoDB cloud
{% endembed %}

Next we are going to login/create an account! I already have an account so I will not be able to show that here. &#x20;

### Setting up database

After you create an account you should be greeted with a page that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_YwleKVNbgZ.png>" %}

Just fill in the blanks on it and continue!

Once you are done with that you should be greeted with a page that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_4RcQYLWatU.png>" %}

Select the free option.

Now you should see a page that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_WTrY3vIE51.png>" %}

Now click the create cluster button!<br>

### Permissions

After you click the Create Cluster button you should be greeted with a page that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_Sm0rcJ0zak.png>" %}

First we need to enter the username and password we will use for the database, fill this in with something you remember or can save (you'll need this later) and click Create User.

{% embed url="<https://cdn.iharrblx.xyz/firefox_uuuKsxkk9e.png>" %}

Now scroll down to the IP access list section and type 0.0.0.0 in the IP address field.

{% embed url="<https://cdn.iharrblx.xyz/firefox_wZUMoAhjdu.png>" %}

Now click the Add Entry button.

Now click the finish button at the bottom of the screen.

{% embed url="<https://cdn.iharrblx.xyz/firefox_zmr1PL7YsP.png>" %}

Boom! You are done with this section now to the next.

### Connection URI

Once you click the Finish And Close button you should be greeted with a page that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_C6DNujwvac.png>" %}

Now we are going to need to click the connect button on the card.

![](https://cdn.iharrblx.xyz/firefox_HjGqsgPpQz.png)

After you click that you are going to want to click the Connect Your Application button.

{% embed url="<https://cdn.iharrblx.xyz/firefox_DnQFxwwzCQ.png>" %}

After you should see a page that looks like this.

{% embed url="<https://cdn.iharrblx.xyz/firefox_BAFUwxjJxw.png>" %}

You are going to need to copy the URI and replace \<password> with the password you saved earlier. You will need to save this for hosting setup.
