Mongo Database

Documentation on how to get Mongo Database free of charge.

If you want to use MongoDB and don't want to give money away or you don't need anything special, then you can follow this guide to get database for free:

Create Project

  1. Register on MongoDB Atlas & verify your mail

  2. Now you'll be prompted to select Plan, select M0

  3. Scroll down and optionally change Name & Location and click 'Create'

  4. Now you'll be asked to create User for Database, choose Username & Password and click 'Create User'

  5. Now you need to add list of IP Addresses which will be able to connect to your Database. Enter IP of your machine/server or 0.0.0.0 to allow access from anywhere (not recommended) and click 'Add Entry'

  6. Now scroll down and click 'Finish and Close'

Connect

Now in order to connect bot to MongoDB, you'll need Connection URI which can be obtained in a few simples steps:

  1. Copy the URI by clicking button like on this image

  2. Open config.yml and find database.mongo.uri field and paste the URI you copied into it. 1. You can optionally add database name of your choice after mongodb.net/. By default it will be 'test'.

  3. Save and restart Bot

Last updated