Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 2.32 KB

File metadata and controls

56 lines (37 loc) · 2.32 KB

"Talking to Your Database" Demo

This repository shows the sample code for our blog "Talking to Your Database," which shows how to use Directus as a data store for an IVR application.

Basic Configuration

Requirements

You will also need a tunneling system like ngrok if you want to run the code locally.

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 Voice API Capabilities
  7. Enter the URL for your application into the Answer URL, or the ngrok URL if you are using ngrok
  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

Set up Directus

  1. Go to https://docs.directus.io/getting-started/quickstart.html and follow the quick start guide to either set up a Directus Cloud account, or set up Directus to run locally.

Set up Configuration File

  1. Copy .env.dist to .env
  2. Fill in the variables with the needed information:

Running the Application

To run the application, open up a terminal and run:

node server.js

Development and Contributing

Interested in contributing? We ❤️ pull requests! See the Contribution guidelines.

Getting Help

We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either: