Skip to content

carloscarcamo/OpenTokWebRTC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opentok WebRTC Demo

#Getting Started

##Dependencies This project uses node.js for a server, and npm to manage dependencies. Install these on your machine to start:

##Technology Used for This Project

##Setup In the top directory of the project, run

npm install

And npm will install all the dependencies required by the app.

Add your OpenTok Credentials in config.js

// OpenTok Credentials
config.opentok.key = process.env.TB_KEY || '<your_apiKey>';
config.opentok.secret=  process.env.TB_SECRET || '<your_secret>';

To start the Server, run in a separate window (by default it will run on http://localhost:3000/)

npm start

To start server for development and watch for changes using nodemon:

npm run devServer

During development you can use gulp to watch for changes in your client side *.js files, and it will minify all *.js files to public/dis/js, just run:

gulp