https://github.com/ourcodeworld/videochat-peerjs-example
A videochat implementation using PeerJS with Node.js
https://github.com/ourcodeworld/videochat-peerjs-example
Last synced: 7 days ago
JSON representation
A videochat implementation using PeerJS with Node.js
- Host: GitHub
- URL: https://github.com/ourcodeworld/videochat-peerjs-example
- Owner: ourcodeworld
- License: mit
- Created: 2017-07-08T17:24:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:34:58.000Z (over 2 years ago)
- Last Synced: 2025-04-02T17:22:28.041Z (about 2 months ago)
- Language: JavaScript
- Size: 95.7 KB
- Stars: 82
- Watchers: 6
- Forks: 72
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# videochat-peerjs-example
A videochat implementation using PeerJS with Node.js
# How to use
Open a terminal and switch to the `videochat-peerjs-example/server` directory and install dependencies executing:
```batch
npm install
```Then switch to the `videochat-peerjs-example/public` directory and install dependencies executing:
```batch
npm install
```Once the dependencies were installed, start with the terminal the website server by switching to the `videochat-peerjs-example/public` directory and executing:
```batch
node website-server.js
```Let that terminal open and open a new one. Switch to the `videochat-peerjs-example/server` directory and start the PeerJS server executing:
```batch
node peer-server.js
```Open your browser and access the addres: [title](https://localhost:8443) and have fun. For more information, please visit the article of this [example here in Our Code World](http://ourcodeworld.com/articles/read/496/how-to-create-a-videochat-with-webrtc-using-peerjs-and-node-js)
# Important
Don't forget to change the host address [at the line 16](https://github.com/ourcodeworld/videochat-peerjs-example/blob/master/public/source/js/script.js#L16) in `videochat-peerjs-example/public/source/js/scripts.js` according to yours.