Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julienc91/ezshare
Share files from your browser using WebRTC
https://github.com/julienc91/ezshare
file-sharing file-transfer file-upload hacktoberfest p2p peerjs webrtc
Last synced: 5 days ago
JSON representation
Share files from your browser using WebRTC
- Host: GitHub
- URL: https://github.com/julienc91/ezshare
- Owner: julienc91
- License: mit
- Created: 2020-04-13T17:44:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T16:44:14.000Z (4 months ago)
- Last Synced: 2024-07-16T20:38:49.983Z (4 months ago)
- Topics: file-sharing, file-transfer, file-upload, hacktoberfest, p2p, peerjs, webrtc
- Language: TypeScript
- Homepage: https://ezshare.julienc.io/
- Size: 1.39 MB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ezshare
Share files from your browser using WebRTC.
Demo on: https://ezshare.julienc.io/
## Preview
![Upload](https://raw.githubusercontent.com/julienc91/ezshare/master/doc/upload_step1.png)
## Quick Start
### With Docker
Using Docker:
```
$ docker-compose up -d --build
```This will start two services, the web application on port 3000, and the PeerJS server on port 9000.
### Without Docker
Install dependencies:
```
$ yarn
```Create a production build:
```
$ yarn build
```Start the web application on port 3000:
```
$ yarn serve -s dist/
```Start the PeerJS server on port 9000:
```
$ yarn peerjs --port 9000
```## SSL Configuration
I would recommand using Nginx as a reverse proxy for the web application and configure SSL at this level.
For the PeerJS server though, I would suggest modifyng the docker-compose.yml file by replacing the PeerJS command with this one:```
peerjs:
...
command: yarn peerjs --port 5000 --sslkey /path/to/privkey.pem --sslcert /path/to/fullchain.pem
```An additional volume may be added to make the cert files available on the container. For example with Let's Encrypt:
```
peerjs:
...
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
```