View Code? Open in Web Editor
NEW
This project forked from aoberoi/opentokrtc
WebRTC Demo using OpenTok's WebRTC library for video and OpenTok signaling for live chat
JavaScript 42.58%
HTML 10.16%
CSS 47.26%
opentokrtc's Introduction
![Deploy](https://camo.githubusercontent.com/a45640b9f85b4daa9a7c8b106e324e58d2114cccd227df20185a04d931411701/68747470733a2f2f7777772e6865726f6b7563646e2e636f6d2f6465706c6f792f627574746f6e2e706e67)
Procfile
is required to run the nodejs app on Heroku
package.json
contains all npm modules to run the app
app.js
contains all server side code
config.js
contains configurations: TokBox credentials, p2p mesh support, Redis support, reserved rooms, etc.
lib
folder contains all the code to handle configurations: p2p mesh support, Redis support, reserved rooms, etc.
views
folder contains the html template for the app
public/css
folder contains all the css for the app.
Look for files with .scss
extensions. .css
files are generated from sass.
public/js
contains the front end code and interactions with OpenTok SDK.
- Clone this repo
- Get my API Key and Secret from TokBox
- Replace
OTKEY
and OTSECRET
with your corresponding API Key and Secret in app.js
- Run
npm install
to install the necessary packages
- Start the server with
node app.js
Deploying this app to your own host (Heroku):
- Clone this repo
- Go into the cloned repo:
cd OpenTokRTC
- Create a heroku app:
heroku create appName
- Add your TokBox apiKey and secret credentials in
config.js
or set Heroku's environment variables
- Push to remote heroku repository:
git push heroku master
- Visit your app