Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Getting Started

Raghuram Iyer "Ragzzy-R edited this page Jun 19, 2022 · 22 revisions

⚠️This wiki is still under construction. Some information might be incomplete. Please do not use this as reference at the moment.


In this section we will setup our app and run it.

Table of Contents

Prerequisites

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

Cloning the repo

Get the code by cloning this repo using git.

git clone [email protected]:100mslive/100ms-web-v2.git

Once cloned, open a terminal in the project directory, and install dependencies with:

cd 100ms-web-v2
yarn install

Setting environment variables

Environment variables let you customize the app and set important things like token generation endpoint(see below). We have a example.env as a template to help you get started with.You can add remove stuff to it as per your needs. To begin with, create a new file .env and copy the values from example.env

cp example.env .env

Getting the token generation endpoint

Get your token endpoint from the Developer section of 100ms' Dashboard download Update the REACT_APP_TOKEN_GENERATION_ENDPOINT in .env file with the above token endpoint value (eg. https://prod-in.100ms.live/hmsapi/example.app.100ms.live/)

Run the app

Then start the app with:

yarn start

The app now should be running at https://localhost:3000/. You should see a warm 404 Error welcoming you.

💡 404 Error

Please ignore the 404 message, you need to join the right URL of the room. Next section describe how to create a room and form the correct URL

Clone this wiki locally