GithubHelp home page GithubHelp logo

philnash / twilio-video-svelte Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 4.0 77 KB

A Twilio Video application built with Svelte

License: MIT License

CSS 11.72% HTML 5.12% JavaScript 29.75% Shell 0.13% Svelte 53.29%
twilio twilio-video svelte sveltejs

twilio-video-svelte's Introduction

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.

twilio-video-svelte's People

Contributors

dependabot[bot] avatar philnash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twilio-video-svelte's Issues

When i try to run it i get this error

constants.js:64 Uncaught (in promise) TypeError: token must be a string
at Object.INVALID_TYPE (constants.js:64)
at Object.connect$1 [as connect] (connect.js:177)
at Room.svelte:26
at run (index.mjs:18)
at Array.map ()
at index.mjs:1280
at flush (index.mjs:622)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.