To install packages and run the app locally:
yarn
yarn start
To build and deploy on Netlify:
yarn deploy
If you don't work on the server side, you can use the instance running on our server (see settings.ts).
To install packages and run the app locally:
cd server
yarn
yarn start
You can watch code changes with:
yarn start:watch
You can either:
-
Use the PeerJS instance running on our server (see
settings.ts) -
Use the official PeerJS instance, by commenting PeerJS options in
settings.ts -
Run a local instance with Docker:
docker run -p 9000:9000 -d peerjs/peerjs-server
To test your local instance with multiple devices, you'll need a HTTP tunnel using SSL.
We have ngrok configured for that. Just run this:
cd server
yarn ngrok