Procfileis required to run the nodejs app on Herokupackage.jsoncontains all npm modules to run the appapp.jscontains all server side codeconfig.jscontains configurations: TokBox credentials, p2p mesh support, Redis support, reserved rooms, etc.libfolder contains all the code to handle configurations: p2p mesh support, Redis support, reserved rooms, etc.viewsfolder contains the html template for the apppublic/cssfolder contains all the css for the app.
Look for files with.scssextensions..cssfiles are generated from sass.public/jscontains the front end code and interactions with OpenTok SDK.
- Clone this repo
- Get my API Key and Secret from TokBox
- Replace
OTKEYandOTSECRETwith your corresponding API Key and Secret inapp.js - Run
npm installto install the necessary packages - Start the server with
node app.js
- 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.jsor set Heroku's environment variables - Push to remote heroku repository:
git push heroku master - Visit your app
