Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Docs: Added the atlas setup guide (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpt-Dingus authored Aug 23, 2023
1 parent a5f7863 commit 753cbbd
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 1 deletion.
Binary file added docs/assets/mongodb_atlas/MongoDB_Asset-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/mongodb_atlas/MongoDB_Asset-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/mongodb_atlas/MongoDB_Asset-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/mongodb_atlas/MongoDB_Asset-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/mongodb_atlas/MongoDB_Asset-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/mongodb_atlas/MongoDB_Asset-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions docs/guides/mongodb_atlas_setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
This guide will show you how to set up a [MongoDB Atlas](https://www.mongodb.com/atlas/database) database for use with TuringBot. The setup for M0 (the free tier) is free of charge.

# Creating the DB cluster

1) Head to the [signup page](https://www.mongodb.com/cloud/atlas/register) and fill your details in, agree to the terms and click `Create your Atlas account`

2) Once logged in, you will get a welcome screen prompting you to deploy the database cluster. Fill it in as you wish and click `Finish` <br>

![image](../assets/mongodb_atlas/MongoDB_Asset-1.png)

3) You will now be prompted with some more advanced DB info. Make sure to set the server to M0 if you want the Free tier. Click `Create` once you are done. <br>

![image](../assets/mongodb_atlas/MongoDB_Asset-2.png)

4) You will now be faced with the login setup. Create an user that you will log in with, mark the username and password down. <br>

![image](../assets/mongodb_atlas/MongoDB_Asset-3.png)


5) Add your IP address (if it hasn't been added already), if you have a dynamic ip add your whole subnet. Once done, click on `Finish and close`

![image](../assets/mongodb_atlas/MongoDB_Asset-4.png)

The cluster is now created and ready for use with Turingbot.

# Connecting to the DB Cluster

1) Click on `Connect` <br>

![image](../assets/mongodb_atlas/MongoDB_Asset-5.png)

2) Click on `Shell`, the third step now contains all necessary information to proceed. Copy the value in the quotation marks exclkuding the protocol (`mongodb+src://`)

![image](../assets/mongodb_atlas/MongoDB_Asset-6.png)

3) We are now done with the webpage setup, you can now open the bot config up and fill the info in accordingly:

```jsonc
"mongodb": {
"protocol": "mongodb+srv://",
"address": "<the value you just copied (WITH THE TRAILING /)>",
"username": "<username>",
"password": "<password>"
},
```

You can now start the bot and use MongoDB normally.


[//]: # (All credentials used in this guide have been invalidated before pushing.)
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 753cbbd

Please sign in to comment.