MongoDB Atlas will send you an email, if you don't receive it check your Spam folder.
In the email you received from **MongoDB Atlas** (mongodb-atlas @ mongodb.com), click on `Verify email`
Another browser tab will open with your confirmed MongoDB account, `Continue`.
Enter some information (like below) and click `Finish`.
c) Select `Create a cluster in Shared Clusters (FREE)`
```{admonition} If you ever see this, just STOP
:class: danger
We're building a free cluster: you don't need to provide any billing information.
```
d) Check you selected `Shared`, leave all default values and click `Create Cluster`
e) Select `Username and Password` and invent a database username (for example `nightscout`) and a database password (for example `soo5ecret` but please make one that's yours!).
```{admonition} Database credentials
:class: warning
Do not use your Atlas **account** credentials.
Do not use special characters: only letters and numbers. No spaces.
```
Write down the password in the line below (yes, in this browser window you're reading now, unless you're reading a printed version). You’ll need it later.
| Database password (write here ->) |
| ------------------------------------------------------------ |
Then click `Create User`.
f) Select `My Local Environment` and in the box `My IP address` write `0.0.0.0/0` (mind these are all zeroes, not the letter O)
```{warning}
If you don't allow access from anywhere (IP 0.0.0.0/0) Nightscout will not be able to access your database."
```
Then click `Add Entry`.
g) Click on `Finish and Close`
h) Click on `Go to Databases`
i) Atlas will create your default cluster, it can take more than 3 minutes
j) Click on `CONNECT`
k) If displayed, click on `Choose a connection method` (else skip)
l) Select `Drivers`
m) Scroll down (do not change any value) and copy the connection string: click `Copy` and paste it somewhere to edit it (like Notepad).
n) Paste the string in the line below (yes, in this browser window you're reading now, unless you're reading a printed version).
(paste here ->)
```{hint}
It should be similar to this (`xxxxx` will be different):
`mongodb+srv://nightscout:The connection string will appear here
```{warning} Keep this string safely aside, it is called your `MONGODB_URI` ``` p) If you want to do it manually: replace `