{"id":22970716,"url":"https://github.com/janole/video-chat","last_synced_at":"2025-08-13T11:33:45.086Z","repository":{"id":40773295,"uuid":"271098552","full_name":"janole/video-chat","owner":"janole","description":"Simple Video Chat Demo based on React and WebRTC","archived":false,"fork":false,"pushed_at":"2024-05-01T20:17:16.000Z","size":8073,"stargazers_count":12,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T14:15:22.463Z","etag":null,"topics":["coturn","coturn-docker","node","nodejs","react","reactjs","webrtc","webrtc-demo","webrtc-video"],"latest_commit_sha":null,"homepage":"https://video.janole.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-09T20:05:10.000Z","updated_at":"2024-01-28T12:43:09.000Z","dependencies_parsed_at":"2024-01-28T12:56:10.900Z","dependency_job_id":"b2136b19-6240-4f14-847e-47925d0a5adc","html_url":"https://github.com/janole/video-chat","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janole%2Fvideo-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janole%2Fvideo-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janole%2Fvideo-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janole%2Fvideo-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janole","download_url":"https://codeload.github.com/janole/video-chat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229759841,"owners_count":18119874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coturn","coturn-docker","node","nodejs","react","reactjs","webrtc","webrtc-demo","webrtc-video"],"created_at":"2024-12-14T22:14:24.808Z","updated_at":"2024-12-14T22:14:25.251Z","avatar_url":"https://github.com/janole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# video-chat\n\nA Simple Video Chat Demo based on React and WebRTC\n\n## Installation\n\nThe project root contains scripts to cover both the frontend and backend at the same time. To install, just type:\n\n```Shell\n$ npm install\n```\n\nNow you can simply start the signalling server and the frontend app by typing:\n```Shell\n$ npm run dev\n```\n\nAfter a short while, the video chat should be available at: http://localhost:3000.\n\n## Building and deployment\n\nThere are two simple Dockerfiles included in the project. You can build both the frontend and backend images by running:\n\n```Shell\n$ npm run docker:build\n```\n\n### Configuration\n\n#### Backend/Signaling Server\n\nThe configuration of the backend is done through __ENVIRONMENT__ variables:\n\n|Name            |Description                                                         |Default\n|----------------|--------------------------------------------------------------------|--------\n|__LISTEN_PORT__ |The port number for the socket.io signaling server                  |__4999__\n|__TURN_SERVERS__|A comma-separated list of TURN servers (\"turn:server.com\")          |__None__\n|__TURN_SECRET__ |The auth secret used for accessing the TURN server via TURN REST API|__None__\n|__STUN_SERVERS__|A comma-separated list of STUN servers (\"stun:server.com\")          |__None__\n\n#### Frontend\n\nThe configuration of the frontend is (currently) done by volume-sharing the [env.js](https://github.com/janole/video-chat/blob/master/frontend/public/env.js) file to: ``/usr/local/apache2/htdocs/env.js`` into the running frontend container.\n\n#### STUN/TURN server setup (coturn)\n\nStart the coturn docker image [instrumentisto/coturn](https://hub.docker.com/r/instrumentisto/coturn) with the following parameters:\n\n```Dockerfile\nservices:\n  coturn:\n    image: instrumentisto/coturn\n    network_mode: host\n    volumes:\n      - \"./coturn:/var/lib/coturn\"\n    command: [\"-a\", \"-f\", \"--realm=videochat\", \"--log-file=stdout\", \"--min-port=49160\", \"--max-port=49200\", \"--external-ip=$$(detect-external-ip)\", \"--use-auth-secret\", \"--static-auth-secret=the-turn-secret-see-above\"]\n```\n\n* Configure the firewall to open up UDP ports `--min-port` to `--max-port` (49160-49200 in the example above.)\n* The `--static-auth-secret` needs to be the same as the `TURN_SECRET` configured for the signaling server.\n\n---\n## Have fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanole%2Fvideo-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanole%2Fvideo-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanole%2Fvideo-chat/lists"}