A P2P video chat application based on WebRTC built using React and Node using the simple-peer and Socket.io packages.
- Download or clone the repository and run
npm i
to install the necessary packages - Open the client directory in the terminal and run
npm start
to start the front-end - Open the server directory in the terminal and run
node index.js
to start the back-end - The application will be visible on http://localhost:3000
- To start a call locally, open the application on two separate tabs
- Give permission to the application to access microphone and camera.
- Click on the COPY YOUR ID button on one of the tabs and paste it in the ID to Call input in the other tab and click on the Call button.
- After a few seconds a ringtone will be audible on the tab whose ID was pasted in the ID to Call input and buttons to answer and decline the call will be visible.