Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 855 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 855 Bytes

WebRTC Multi-Peer Example With React & NestJS

Heroku App: https://react-socket-io-webrtc-client.herokuapp.com/

Start Development

Docker Redis

docker run --name test-redis -d -p 6379:6379 redis

NestJS Server

cd server
yarn install
yarn start:dev

React Client

cd web
yarn install
yarn start

Heroku Deployment

NestJS Server

heroku create -a nestjs-webrtc-server
heroku git:remote -a nestjs-webrtc-server
heroku features:enable http-session-affinity // Enable Websocket
git subtree push --prefix server heroku master

React Client

heroku create -a react-socket-io-webrtc-client
heroku git:remote -a react-socket-io-webrtc-client
git subtree push --prefix web heroku master

Production environment defined on Heroku Dashboard with Config Vars