Skip to content

This demo shows off a more full-fledged way to integrate Vonage Verify, Vonage Messages, and the Vonage Meetings API in a structured application. It is powered by MongoDB's Atlas cloud database service, and can be managed by any MongoDB-compatible suite of tools.

License

Notifications You must be signed in to change notification settings

Vonage-Community/sample-mongodb-vonage-integration-restaurant-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vonage and MongoDB Atlas Demo

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.

Basic Configuration

Requirements

Set up MongoDB Atlas

  1. To go https://mogodb.com and sign up for a free account
  2. Create an M0 instance on your provider of choice
  3. 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"
  4. Select "My Local Environment" for where you would like to connect from.
  5. Your local public IP address should already be added to the IP Access List.
  6. Click "Finish and Close"

Set up a MongoDB App Service

  1. Click on "App Services" in the lower navbar
  2. Select "Build your own App" and click "Next"
  3. Give your application a name, and click "Create App Service"
  4. Pull down the application with realm-cli pull --remote <application-short-name>
  5. cd into the newly created directory
  6. Move over configuration files:
    1. Copy app-service/auth/customer_user_data.json.dist to auth/customer_user_data.json and edit with your database and data source name
    2. Copy app-service/auth/providers.json.dist to auth/providers.json and edit with your reset password URLs
    3. Copy app-service/data_sources/mongodb-atlas/restaurant_pos_demo/* to data_sources/<data-source-name>/<database-name>
    4. Copy app-services/data_sources/mongodb-atlas/default_rule.json to data_sources/<data-source-name>/default_rule.json
  7. Push the configuration back up to Atlas with realm-cli push --remote <application-short-name>

Set up a Vonage Account

  1. Sign up for a free account at https://developer.vonage.com/sign-up
  2. Under "Build & Manage", select "Applications"
  3. Click "Create a new application"
  4. Give the application a name
  5. Click "Generate public and private key" to download a new private key for this application
  6. Enable the Messages and Meetings API Capabilities
  7. For now, just enter https://example.com for the Inbound and Status URLs for Messages
  8. Click "Generate new application" at the bottom
  9. Under the "Link Numbers" section, click the "Link" button to attach your Vonage Number to this application

About

This demo shows off a more full-fledged way to integrate Vonage Verify, Vonage Messages, and the Vonage Meetings API in a structured application. It is powered by MongoDB's Atlas cloud database service, and can be managed by any MongoDB-compatible suite of tools.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages