This repository contains code for a MongoDB Atlas and Vonage demo application, as well as configuration files for a related MongoDB App Service.
To run the demo, please see webapp/README.md.
- MongoDB Account
- Vonage Developer Account
- Realm CLI
- Node.js 16+
- To go
https://mogodb.com
and sign up for a free account - Create an M0 instance on your provider of choice
- For now, use "Username and Password" authentication. Feel free to change the suggested username and password as you see fit. When you are ready, click "Create User"
- Select "My Local Environment" for where you would like to connect from.
- Your local public IP address should already be added to the IP Access List.
- Click "Finish and Close"
- Click on "App Services" in the lower navbar
- Select "Build your own App" and click "Next"
- Give your application a name, and click "Create App Service"
- Pull down the application with
realm-cli pull --remote <application-short-name>
cd
into the newly created directory- Move over configuration files:
- Copy app-service/auth/customer_user_data.json.dist to
auth/customer_user_data.json
and edit with your database and data source name - Copy app-service/auth/providers.json.dist to
auth/providers.json
and edit with your reset password URLs - Copy app-service/data_sources/mongodb-atlas/restaurant_pos_demo/* to
data_sources/<data-source-name>/<database-name>
- Copy app-services/data_sources/mongodb-atlas/default_rule.json to
data_sources/<data-source-name>/default_rule.json
- Copy app-service/auth/customer_user_data.json.dist to
- Push the configuration back up to Atlas with
realm-cli push --remote <application-short-name>
- Sign up for a free account at https://developer.vonage.com/sign-up
- Under "Build & Manage", select "Applications"
- Click "Create a new application"
- Give the application a name
- Click "Generate public and private key" to download a new private key for this application
- Enable the Messages and Meetings API Capabilities
- For now, just enter
https://example.com
for the Inbound and Status URLs for Messages - Click "Generate new application" at the bottom
- Under the "Link Numbers" section, click the "Link" button to attach your Vonage Number to this application