Twilio calls playground
Clone this repo, cd
into it and then:
$ npm install
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:
$ npm run start-dev
then visit http://localhost:5008
- 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.
# Lint before commiting
$ npm run lint