mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-13 21:03:07 +08:00
Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
一个开源的 Web 应用,允许用户在局域网里通过 WebRTC 分享文件。如果不在同一局域网,可以进入同一个页面进行分享。
| css | ||
| js | ||
| .gitignore | ||
| index.html | ||
| package.json | ||
| Procfile | ||
| README.md | ||
| server.js | ||
FileDrop
It uses PeerJS server at http://file-drop-peer-server.herokuapp.com.
Setup
-
Run
npm installto install dependencies. -
Install foreman using
gem install foreman, unless you already have it installed. -
Create
.envfile and set the following environment variables there:HOST=localhost PORT=8000 WEB_PORT=8000 SECRET=some-random-string -
Run
foreman startto start the server onlocalhost:8000.