Telar CLI - Setup Telar Social on OpenFaaS

February 19, 2021 ยท View on GitHub

Step 5 (MongoDB)

1. Add a New User for Database Access

  • From Database Access menu, click on Add New Database User. Database Access
  • Enter username and click on Autogenerate secure password then click on Add User. Autogenerate secure password
  • Back in the Telar CLI copy password in Telar CLI Password field.

2. Enter connection string

  • From Cluster menu click on CONNECT. CONNECT
  • From Connect window click on Connect your application. Then copy connection string using Copy button then back in the Telar CLI paste it in Host field.

Note: The connection string should follow the pattern mongodb+srv://amir:<password>@cluster0-luefk.mongodb.net/test?retryWrites=true&w=majority. If you created more that one database user the connection string will change to mongodb+srv://<username>:<password>@cluster0-luefk.mongodb.net/test?retryWrites=true&w=majority. In this case you need to replace one of database username with <username>. connection string

3. Enable Network Access

  • From Network Access menu, click on Add IP Address. Add IP Address
  • From the open window click on Allow Access from Anywhere then Confirm. Allow Access from Anywhere