Skip to content

amit-100ms/sample-app-web

 
 

Repository files navigation

100mslive sample web app

This is an example web app to demo 100mslive's web SDK

Prerequisites

You will need Node.js version v12.13.0 or greater installed on your system

Setup

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

Token generation

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/)

[Optional] Firebase config

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 🚀

Screenshot

About

An example web app to demo 100mslive's web SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.9%
  • SCSS 6.4%
  • Other 1.7%