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"
}
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.