This is an example web app to demo 100mslive's web SDK
You will need Node.js version v12.13.0 or greater installed on your system
Get the code by cloning this repo using git
git clone [email protected]:100mslive/sample-app-web.git
Once cloned, open the terminal in the project directory, and install dependencies with:
npm install
Create a new file .env
and copy the values from example.env
cp example.env .env
Host your token generation service following this guide
Update the TOKEN_ENDPOINT
in .env
file with your token generation service endpoint (eg. https://ms-services-vjml47hk9gmu.runkit.sh/
)
To turn on the remote-mute feature, update the following values in .env
file from your firebase project settings:
# Firebase config
FIREBASE_API_KEY=<firebaseConfig.apiKey>
FIREBASE_AUTH_DOMAIN=<firebaseConfig.authDomain>
FIREBASE_DATABASE_URL=<firebaseConfig.databaseURL>
FIREBASE_PROJECT_ID=<firebaseConfig.projectId>
FIREBASE_STORAGE_BUCKET=<firebaseConfig.storageBucket>
FIREBASE_MESSAGING_ID=<firebaseConfig.messagingSenderId>
FIREBASE_APP_ID=<firebaseConfig.appId>
Then start the app with:
npm start
The app should now be up and running at http://localhost:8080 🚀