| app | ||
| tasks | ||
| .buildpacks | ||
| .env.sample | ||
| .gitignore | ||
| firebase_rules.json | ||
| Gemfile | ||
| Gemfile.lock | ||
| Gruntfile.js | ||
| LICENSE | ||
| newrelic.js | ||
| package.json | ||
| Procfile | ||
| README.md | ||
ShareDrop
ShareDrop is HTML5 clone of Apple AirDrop that uses WebRTC for secure peer-to-peer file transfer. It uses Firebase for presence management and WebRTC signaling.
Files are transfered directly between users - they don't go through any server, so you don't have to upload them anywhere first.
At the moment ShareDrop allows you to send files only to other devices in the same local network, i.e. devices with the same public IP address.
The main difference between ShareDrop and AirDrop is that ShareDrop requires internet connection to find devices, while AirDrop doesn't need one - it creates ad-hoc wireless network between them. On the other hand, ShareDrop allows you to send files between mobile (Android) and desktop devices.
Supported browsers
- Chrome (desktop and mobile) 33+
- Opera 20+
Firefox support is coming soon.
How to set it up for local development
- Setup Firebase:
- Sign up for a Firebase account and create a database.
- Go to "Security Rules" tab, click "Load Rules" button and select
firebase_rules.jsonfile. - Take note of your database URL and its secret, which can be found in "Secrets" tab.
- Run
npm -g install grunt-clito install Grunt. - Run
npm installto install NodeJS dependencies. - Run
bundle installto install Ruby dependencies. - Run
cp .env{.sample,}to create.envfile. This file will be used by Grunt to set environemnt variables when running the app locally. You only needNEW_RELIC_*variables on production. - Run
grunt serveto start the app. - Run
grunt buildto build production version of the app todistdirectory.
Deployment
When deploying to Heroku, use multi buildpack.
For new apps:
heroku create myapp --buildpack https://github.com/ddollar/heroku-buildpack-multi.git
For existing apps:
heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git