twilio-video-svelte Svelte Themes

Twilio Video Svelte

A Twilio Video application built with Svelte

Twilio Video built in Svelte

This is a first attempt at creating a simple video chat application using Twilio Video and Svelte as the front end framework.

Running the project

What you'll need

Getting started

Clone the project and change into the directory:

git clone https://github.com/philnash/twilio-video-svelte.git
cd twilio-video-svelte

Install the dependencies:

npm install

Copy the .env.example file to .env:

cp .env.example .env

Create an endpoint you can request an access token from. Check out this Twilio Function template for Video Tokens as a starting point.

Once you have that running, set the URL of the token endpoint as the TOKEN_URL in .env..

Then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start which uses sirv.

Top categories

Loading Svelte Themes