Skip to content

Latest commit

 

History

History

react-sample-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

OpenTok Accelerator Sample App for JavaScript React

Quick start

This document shows you how to prepare and run the sample application. The app is built using Accelerator Core JS and the following accelerator packs:

Configuration

Add a config.json file with your OpenTok credentials to the src directory:

{
  "apiKey": "YOUR_API_KEY",
  "sessionId": "YOUR_SESSION_ID",
  "token": "YOUR_TOKEN"
}

Deploying and running the app

This sample application was built with Create React App and uses webpack to transpile code.

$ npm install
$ npm run start

Looking for a sample in plain JavaScript? Click here.