# MongoDB Atlas

* Create your  [MongoDB Atlas](https://www.mongodb.com/atlas/database) account
* You can start with selecting the free option:

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2FyMyKRphrzYvPFFUHQORE%2Fscreenshot-cloud.mongodb.com-2023.02.27-15_44_03.png?alt=media&#x26;token=d5baa599-6634-414c-a230-1a0ae1a5d429" alt=""><figcaption></figcaption></figure>

* Pick the cloud provider, location and create the cluster:

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2FxbcXfVXIJiPZEmaVxDjJ%2Fscreenshot-cloud.mongodb.com-2023.02.27-15_45_02.png?alt=media&#x26;token=5cd0e1f7-94de-445e-aac0-fbc722e17390" alt=""><figcaption></figcaption></figure>

* Make use of the *security* tab for creating user credentials for the database. Please note that these are not the same credentials you use for logging into MongoDB Atlas. These will be used for your application to connect to the database.

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2Fj9v86Wt2q02fSKNAlfG3%2Fscreenshot-cloud.mongodb.com-2023.02.27-15_52_41.png?alt=media&#x26;token=90d530bf-3a8c-468b-a80e-81f4686db184" alt=""><figcaption></figcaption></figure>

* Add the "Read and write to any database" built in role to the user created.

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2FII1XDY0jCJIKCDGxV5Uo%2Fscrnli_3_10_2023_4-21-54%20PM.png?alt=media&#x26;token=cbe373d1-55f8-4022-beda-18b711bb7d71" alt=""><figcaption></figcaption></figure>

* Next, we have to define the IP addresses that are allowed access to the database. You should choose cloud environment and allow access from your server's IP address:

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2FqNA29Bl0Oe6d72PAztm5%2Fscreenshot-cloud.mongodb.com-2023.02.27-16_00_01.png?alt=media&#x26;token=8b8c7db0-f0f6-4069-a594-e00024f016aa" alt=""><figcaption></figcaption></figure>

* Finally, we are ready to connect to our database. Start by clicking *connect*:

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2F23tlTU1Xp7VBYeXapXul%2Fscreenshot-cloud.mongodb.com-2023.02.27-16_09_07.png?alt=media&#x26;token=d834a77a-58e2-44c1-ad22-ba9a46214c22" alt=""><figcaption></figcaption></figure>

* And choose: *Connect your application*:

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2FmU4q78TIy4GlfU88VNYL%2Fscreenshot-cloud.mongodb.com-2023.02.27-16_12_11.png?alt=media&#x26;token=fc6f60d4-c480-4056-ad23-0f1694f42aca" alt=""><figcaption></figcaption></figure>

* The view displays the *MongoDB URL*, which is the address of the database that will be supplied to the environment variable `MONGODB_URL`. The address looks like this:&#x20;

```
"mongodb+srv://Cryptitan_User:<password>@cryptitan.fwtfp53.mongodb.net/?retryWrites=true&w=majority"
```

<figure><img src="https://2510806329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuqgyAWFFqngMON69bQgC%2Fuploads%2FuqdTmpVH3KTlZWvFRxcR%2Fscreenshot-cloud.mongodb.com-2023.02.27-17_13_21.png?alt=media&#x26;token=8a6e5b28-8804-4254-b41f-cac2c0628bbc" alt=""><figcaption></figcaption></figure>

* Replace **\<password>** with the password for the **Cryptitan\_User** user.

{% hint style="info" %}
After successful installation of cryptitan, you should check the database through mongodb atlas to ensure that the encrypted private keys are stored in the newly created database.
{% endhint %}

{% hint style="danger" %}
We strongly recommend you properly set up your mongodb atlas with regular backups, and you should **NEVER** attempt to alter the content of the database directly. We, the cryptitan team, **WILL NOT** be responsible for any form of data loss or corruption.
{% endhint %}
