This is a demo application using GoInstant's GoRTC library and the WebRTC Widget to create an audio and video web conferencing application.
View the live demo of this code here.
1. Install and configure the Heroku toolbelt
heroku apps:create YOUR_WEBRTC_DEMO_APP
heroku addons:add goinstant
heroku addons:add rediscloud:25
To run the WebRTC Demo locally or on heroku some setup is required.
1. Install the heroku-config plugin.
heroku plugins:install git://github.com/ddollar/heroku-config.git
Required Set the express session secret.
heroku config:set SECRET=YOUR_SECRET
Optional The following are additional config vars that can be set using:
heroku config:set VAR_NAME=VAR_VALUE
If you are unsure about what these vars do, just leave them as their defaults.
Config vars with their default values
FORCE_SSL=false
PORT=3000
REDIS_URL=http://localhost:6379
NODE_ENV=local
PLATFORM_HOST=https://cdn.goinstant.net
PLATFORM_PATH=/v1/platform.min.js
GOINSTANT_ISS=localhost/auth
Config vars that are automatically configured via the goinstant heroku addon:
GOINSTANT_CONNECT_URL
GOINSTANT_APP_SECRET
You can choose to run the demo locally or on Heroku.
You must have node js v0.10+ installed and redis 2.6+ server to run the demo locally.
redis-server
heroku config:pull
Before running the demo on Heroku set the NODE_ENV to 'heroku':
heroku config:set NODE_ENV=heroku
Normal or First Push
git push heroku master
To push your branch your working on
git push heroku branchname:master
To push a existing tag, note that this will not work unless you have already initialized the remote repo.
git push heroku v1.0.0^{}:master
heroku git:remote -a <prod repo name>
heroku git:remote -a <stg repo name>
GoInstant is an API for integrating realtime, multi-user functionality into your app. You can check it out and sign up for free.
© 2014 GoInstant Inc., a salesforce.com company
Licensed under the 3-clause BSD license, see LICENSE
file for details.