This Repo focuses on building a simple WebRTC chat app with React and Typescript.
The corresponding backend could be found in this repo.
This repo uses the client-react-ts template.
You need node v14+ and yarn in order to run this project.
git clone https://github.com/radandevist/webrtc-front-ts
// or cloning a specific branch
git clone -b <branch_name> https://github.com/radandevist/webrtc-front-ts
cd webrtc-front-ts
yarn install
yarn start
Generate a production build under the /build
directory.
yarn build
You need a static server in order to run the build files. The http-server npm package is an excellent one for that purpose.
Install http-server globally first:
npm install -g http-server
use http-server to serve the build
folder:
http-server -p 3000 -o ./build