TheProfs / twilio-playground

Twilio calls playground

Home Page:https://bp-twilio-playground.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Twilio calls playground

https://bp-twilio-playground.herokuapp.com

License:MIT License


Languages

Language:HTML 68.8%Language:JavaScript 31.2%