|
| 1 | +# Setting up MongoDB Instance for User Service |
| 2 | + |
| 3 | +1. Visit the MongoDB Atlas Site [https://www.mongodb.com/atlas](https://www.mongodb.com/atlas) and click on "Try Free" |
| 4 | + |
| 5 | +2. Sign Up/Sign In with your preferred method. |
| 6 | + |
| 7 | +3. You will be greeted with welcome screens. Feel free to skip them till you reach the Dashboard page. |
| 8 | + |
| 9 | +4. Create a Database Deployment by clicking on the green `+ Create` Button: |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +5. Make selections as followings: |
| 14 | + |
| 15 | +- Select Shared Cluster |
| 16 | +- Select `aws` as Provider |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +- Select `Singapore` for Region |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +- Select `M0 Sandbox` Cluster (Free Forever - No Card Required) |
| 25 | + |
| 26 | +> Ensure to select M0 Sandbox, else you may be prompted to enter card details and may be charged! |
| 27 | +
|
| 28 | + |
| 29 | + |
| 30 | +- Leave `Additional Settings` as it is |
| 31 | + |
| 32 | +- Provide a suitable name to the Cluster |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +6. You will be prompted to set up Security for the database by providing `Username and Password`. Select that option and enter `Username` and `Password`. Please keep this safe as it will be used in User Service later on. |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +7. Next, click on `Add my Current IP Address`. This will whiteliste your IP address and allow you to connect to the MongoDB Database. |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +8. Click `Finish and Close` and the MongoDB Instance should be up and running. |
| 45 | + |
| 46 | +## Whitelisting All IP's |
| 47 | + |
| 48 | +1. Select `Network Access` from the left side pane on Dashboard. |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +2. Click on the `Add IP Address` Button |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +3. Select the `ALLOW ACCESS FROM ANYWHERE` Button and Click `Confirm` |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +Now, any IP Address can access this Database. |
0 commit comments