Skip to content

marc136/elm-conf

Repository files navigation

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