https://github.com/inf800/p2p-js
P2P text and video chat
https://github.com/inf800/p2p-js
Last synced: 4 months ago
JSON representation
P2P text and video chat
- Host: GitHub
- URL: https://github.com/inf800/p2p-js
- Owner: INF800
- Created: 2020-06-11T08:01:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T16:46:09.000Z (over 2 years ago)
- Last Synced: 2025-01-27T09:43:38.133Z (6 months ago)
- Language: JavaScript
- Size: 4.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
- `brew install npm`
- `npm init` (contiously press enter. creates package.json)
- `npm install simple-peer --save` (saves simple-peer to package.json)
- `npm instal budo --save` (to package.json)
- in bash: `budo index.js:bundle.js` (creates bundle.js in main dir)
- now use `` in html (`index.js` not needed)
- add to `package.json`
```
"scripts": {
"start": "budo index.js:bundle.js",
...
"devDependencies": {
"budo": "^4.1.0"
},
```
to automate it using `npm start`.
**You have to Run `npm start` everytime index.js is updated!**
- host using vscode live/simply using file### How to use
- run `npm install` to install from `package.json`
- run `npm start` (if you want, see what `start` does in package.json)
- now, as `bundle.js` is created, you can use client side! host using simple server or use file:///
- `budo` uses it's own server. goto mentioned host:port# github pages
For production use browserify- simply generate `bundle.js` using `browserify index.js -o bundle.js`
- static page!