Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop 一个开源的 Web 应用,允许用户在局域网里通过 WebRTC 分享文件。如果不在同一局域网,可以进入同一个页面进行分享。
Go to file
2014-01-24 11:22:00 +01:00
css Really initial commit 2014-01-24 11:07:37 +01:00
js Really initial commit 2014-01-24 11:07:37 +01:00
.gitignore Really initial commit 2014-01-24 11:07:37 +01:00
index.html Really initial commit 2014-01-24 11:07:37 +01:00
package.json Really initial commit 2014-01-24 11:07:37 +01:00
Procfile Really initial commit 2014-01-24 11:07:37 +01:00
README.md Update README.md 2014-01-24 11:22:00 +01:00
server.js Really initial commit 2014-01-24 11:07:37 +01:00

FileDrop

It uses PeerJS server at http://file-drop-peer-server.herokuapp.com.

Setup

  1. Run npm install to install dependencies.

  2. Install foreman using gem install foreman, unless you already have it installed.

  3. Create .env file and set the following environment variables there:

    HOST=localhost
    PORT=8000
    WEB_PORT=8000
    SECRET=some-random-string
    
  4. Run foreman start to start the server on localhost:8000.