Skip to content

TheProfs/twilio-playground

Repository files navigation

twilio-playground

JavaScript Style Guide

Twilio calls playground

Install

Clone this repo, cd into it and then:

$ npm install

Set Twilio credentials as environmental variables

You can obtain credentials from the Twilio dashboard

$ export TWILIO_ACCOUNT_SID=<account-SID> # starts with AC
$ export TWILIO_API_KEY=<api-key-name> # starts with SK
$ export TWILIO_API_SECRET=<api-secret>

Run

Run:

$ npm run start-dev

then visit http://localhost:5008

Process

  • Client sends a request to create a Room. If the Room does not exist, it is created.
  • Client sends a server request to create an Access Token, granting access to that Room.
  • Client connects to the Room using the Access Token.

Contributing

# Lint before commiting
$ npm run lint

Authors