Piano++
File Overview
Procfile
is required to run the nodejs app on Herokupackage.json
contains all npm modules to run the appapp.js
contains all server side codeconfig.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 apppublic/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.
How to run the app:
- Clone this repo
- Get my API Key and Secret from TokBox
- Replace
OTKEY
andOTSECRET
with your corresponding API Key and Secret inapp.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