Skip to main content

Set up

Requirements

Twilio Account Settings

This application should give you a ready-made starting point for writing your own application. Before we begin, we need to collect all the config values we need to run the application:

Config ValueDescription
TWILIO_ACCOUNT_SIDYour primary Twilio account identifier - find this in the Console.
TWILIO_NUMBERA Twilio phone number in E.164 format - you can get one here
TWILIO_APP_SIDThe TwiML application with a voice URL configured to access your server running this app - create one in the console here and use its Sid. Also, you will need to configure the Voice "REQUEST URL" on the TwiML app once you've got your server up and running.
TWILIO_API_KEY / TWILIO_API_SECRETYour REST API Key information needed to create an Access Token - create one here.
https://github.com/valeriikot/twilio/blob/master/config.js

Create a TwiML App

In console we have app - Brett

This project is configured to use a TwiML App, which allows us to easily set the Voice URLs for all Twilio phone numbers we purchase in this app.

Create a new TwiML app and use its Sid as the TWILIO_APP_SID environment variable wherever you run this app.

See the end of the "Local development" section for details on the exact URL to use in your TwiML app.

Once you have created your TwiML app, configure your Twilio phone number. If you don't have a Twilio phone number yet, you can purchase a new number in your Twilio Account Dashboard.

Start a new site

Import database dump

Update config on database connector

Add new user in users table

Start your site

Run the server:

npm install

npm start

Your site starts at http://localhost:3000.