其他语言版本:简体中文

Flexible Classroom Electron App

Fetch submodules

git submodule update --init --recursive packages/agora-classroom-sdk 
git submodule update --init --recursive packages/agora-proctor-sdk 
git submodule update --init --recursive packages/agora-plugin-gallery

Install

# install all dependencies via lerna and npm
yarn bootstrap

Config

# rename config template
cp .env.example .env

# fill the config with your agora.io development environment

How to generate RtmToken using your own AppId and Secret

# If .env contains `REACT_APP_AGORA_APP_ID` and `REACT_APP_AGORA_APP_CERTIFICATE` configurations, the client will automatically generate an RTM Token for you
REACT_APP_AGORA_APP_ID=
REACT_APP_AGORA_APP_CERTIFICATE=

Run

yarn dev

Pack the Electron client

# Build Web Resources
yarn build:demo
# Build a Windows client(Run `yarn build:demo` to build Web resources before pack electron)
yarn pack:electron:win
# Build a Mac client(Run `yarn build:demo` to build Web resources before pack electron)
yarn pack:electron:mac