This project is a peer-to-peer (P2P) chat and video call demo built with modern web technologies, including Socket.IO, WebRTC and Node.js. It showcases real-time communication between users without the need for a centralized server.
To scaffold a new project using the CLI tool:
npx roy404-chat-video-p2p-app project-name
Replace project-name with your desired directory name.
Before running the application, make sure the following packages are installed. You may need to use sudo depending on your system permissions.
npm install
npm install --save-dev concurrently
npm install -g http-server
Start both the backend server and the frontend with HTTPS support using:
npm run serve
This command:
- Runs the Node.js backend (
server.js) - Serves the frontend via
http-serverover HTTPS using a self-signed SSL certificate
Note: The SSL certificates provided are self-signed and should only be used for local development or testing purposes. Browsers may display a warning that you'll need to manually bypass.
