This project provides a simple WebRTC live streaming application with a Node.js server and a desktop client built using AngularJS. Signaling is handled via Socket.io.
- WebRTC live streaming
- Node.js server
- AngularJS client
- Socket.io signaling
git clone https://github.com/arnab-m1/WebRTC.git
cd WebRTC/
To run the application locally without Docker, follow these steps:
Install Dependencies:
npm install
npm start
The server will run on port 3000. You can test it in your browser (Chrome or Firefox) by navigating to:
http://localhost:3000
If you encounter any issues or need to debug warnings, run the app with:
node --trace-warnings app.js
If you prefer to use Docker, you can build and run the application inside a container.
Build the Docker Image:
In the root directory of the project, run:
docker build -t webrtc-app .
This will build a Docker image named webrtc-app.
docker run -p 3000:3000 webrtc-app
http://localhost:3000
If you want to trace warnings while running the app in Docker, use the following command:
docker run -p 3000:3000 webrtc-app node --trace-warnings app.js
This will enable warning tracing while running your application inside the Docker container.
If you prefer to use Docker Compose for easier setup, create a docker-compose.yml file like this:
yaml
Copy code
version: '3'
services:
webrtc-app:
build: .
ports:
- "3000:3000"
command: node --trace-warnings app.js
Then, you can start the application using:
docker-compose up
If you encounter any issues with the WebRTC connection or signaling, try running the application with the --trace-warnings flag to trace potential circular dependencies or other warnings:
node --trace-warnings app.js
This will output detailed information about warnings in the terminal, which can help with debugging.