v3/backend/yrs-warp/examples/webrtc-signaling-server/README.md

707 B

Running an example

In order to generate static website content, first you need build it. This can be done via npm.

cd examples/webrtc-signaling-server/frontend
npm install
npm run build

These commands will install all dependencies and run rollup.js, which is used for bundling the JavaScript code and dependecies for Code Mirror.

Once the steps above are done, a ./frontent/dist directory should appear. If so, all you need to do is to run following command from the main git repository directory:

cargo run --example webrtc-signaling-server

It will run a local warp server with an index page at http://localhost:8000.