This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5f7863
commit 555fb5d
Showing
8 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.