An open API service indexing awesome lists of open source software.

https://github.com/theprofs/twilio-playground

Twilio calls playground
https://github.com/theprofs/twilio-playground

playground twilio webrtc

Last synced: 3 months ago
JSON representation

Twilio calls playground

Awesome Lists containing this project

README

        

# twilio-playground

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

[Twilio][twilio] calls playground

## Install

Clone this repo, `cd` into it and then:

```bash
$ npm install
```

### Set Twilio credentials as environmental variables

You can obtain credentials from the [Twilio dashboard][twilio-console]

```bash
$ export TWILIO_ACCOUNT_SID= # starts with AC
$ export TWILIO_API_KEY= # starts with SK
$ export TWILIO_API_SECRET=
```

## Run

Run:

```bash
$ 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

```bash
# Lint before commiting
$ npm run lint
```

## Authors

- [@nicholaswmin][nicholaswmin]

[twilio]: https://twilio.com
[twilio-console]: https://console.twilio.com/
[nicholaswmin]: https://github.com/nicholaswmin