GithubHelp home page GithubHelp logo

isabella232 / share Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/share

0.0 0.0 0.0 1.03 MB

a peer to peer browser based file transfer tool

License: Other

HTML 2.35% JavaScript 97.50% CSS 0.15%

share's Introduction

Share.gov - File Transfer Peer To Peer

Welcome to the File Transfer Peer to Peer project! It is currently a prototype, or in pre-alpha (as we like to say).

##Requirements/Installation

This project is written purely in javascript, so you'll need to install npm, node.js, and a few other specific packages to get started.

You can install both with:

curl -L http://git.io/n-install | bash -s -- -y latest

Then all you'll need to do is run:

npm install from the root directory of this repository!

This will install all the packages in package.json (also found at the root directory).

You'll also need the peerjs server, unless you want to get keys from peerjs.com. To do that simply do:

npm install -g peer

##For development

While not required, the following is recommended if you plan on doing any development with this project:

npm install -g nodemon

If you want, feel free to use our laptop script which comes with npm, node.js and whole bunch of other tools!

##Setup

To run the server simply do:

nodemon server.js #for development

OR

node server.js #for production

AND

./peerjs_server_start.sh

If you get an error about write permissions, simply do:

chmod +x peerjs_server_start.sh

The peerjs_server handles key management between peers, to ensure that no 2 peers have the same IDs. It also handles a lot of the signaling server pieces. However, you can add on more signaling with socket.io code on the client and server side (like we're doing here).

##Description

This project is built on top of peerjs and was inspired by this example repo. The goal of the project is to provide government agencies the ability to transfer files in a secure way, without having to leave ".gov" space. A few examples use-cases for the project:

  1. As an alternative to sending files with personally identifiable information over email (because email is prone to getting hacked)
  2. As an alternative to using non ".gov" spaces for storing files, such as dropbox, googledocs, et al.

##References

There are a lot of almost fit examples for this tool in the open source space, but most of them are toy examples and don't do everything share.gov needs to do. Here are a bunch more similar or related projects, if you're interested in building your own webrtc tool or extending ours:

  1. webrtc.org - this is the canonical technology. It's syntax is somewhat verbose and requires a lot of protocol negotiating but it's also the most flexible of the technologies. The documentation is also minimal but strong giving a good introduction into what webrtc is good for.

  2. peerjs - this is a very often used wrapper ontop of webrtc. It handles a lot of the negotiation at the protocol level meaning you can focus on functionality.

  3. simplewebrtc - another wrapper with a very strong set of examples, so you can think through your own applications.

  4. mozilla developer guide on webrtc - as is typical mozilla's developer guide on webrtc is second to none. This covers everything you need to start working with the api, giving simple straight forward examples.

  5. yet another strong guide, this time by Ilya Grigorik

  6. PeerJS data channel example

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

share's People

Contributors

ericschles avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.