marc136 / elm-conf

Home Page:https://marc-walter.info/posts/2020-06-30_elm-conf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ELM-CONF

This is a simple WebRTC conferencing example that uses custom elements (aka "webcomponents") to render the media streams received from other peers.

preview

I also wrote a post with more information and a detailed explanation of key concepts.

Installation

Install node.js and then the local dependencies, e.g. via npm install.

Usage

For local development: I use caddy as proxy, but it works just as well when starting the elm-app dev server and the backend server directly.

INFO: You can enable or disable the elm debugger in the .env file.

Directly

Start the server

npm start
# or
node server.js

Then configure the backend server address in .env, e.g.:

ELM_APP_WS_SERVER=http://localhost:8443

And then start the live-reload elm-app dev server

npx elm-app start

With caddy

# Start the backend server
node server.js

# Compile the app
npx elm-app build

# Start caddy
caddy start --config Caddyfile

About

https://marc-walter.info/posts/2020-06-30_elm-conf/


Languages

Language:JavaScript 50.3%Language:Elm 39.8%Language:CSS 8.6%Language:HTML 1.3%Language:Shell 0.1%