Skip to content

philnash/twilio-video-svelte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

An example of the video chat. It's me waving at myself in a video chat with myself.

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.

About

A Twilio Video application built with Svelte

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published