Code Monkey home page Code Monkey logo

hbridge's Introduction

H Bridge

Transfer files and text between devices on the local network.

This project was born out of frustration with trying to email files and Chinese characters between devices that didn't support Bluetooth. Such a simple task should have a simple solution.

Usage

Installation

git clone https://github.com/Nateowami/hbridge.git
cd hbridge
npm install

Running

node . # Or from outside the directory, node path/to/hbridge
PORT=8000 node . # Run on a different port. Default is 3000.

Open your browser to localhost:3000 (or wherever the server is running). You can also find the local network server address in the output (e.g. http://192.168.1.101:3000). If you have trouble accessing the server from other devices on the network, check your firewall.

Uploading

Go to the upload tab. On the next page you'll be able to upload multiple files (in browsers that support multiple file selections) or paste text in the text box. You can upload text and files at the same time. Click "Upload Data" at the bottom of the page, and you'll be shown all uploaded data, as well as a confirmation of what was uploaded.

Downloading

To download, navigate to the download tab. Copy text from this page or click a file name to download it.

Deleting

Navigate to public/uploads in the directory where H Bridge is running, and delete the files from there. To delete text, just delete uploaded_text.json from the public directory.

hbridge's People

Contributors

nateowami avatar

Stargazers

 avatar Joshua Bemenderfer avatar

Watchers

James Cloos avatar Joshua Bemenderfer avatar  avatar

hbridge's Issues

TODO

(Taken from a text file stored locally).

  • add error handling
  • add logging
  • consider styling the file choosing button
  • make sure file choosing button has text on mobile (not just a small square)
  • Stop saying "Click a file name to download." when there are not files. Instead say to upload files.
  • Consider renaming as Hbridge.
  • Fix problem where running with nodemon loses text on each upload
  • Smarter upload sorting
  • Copy text buttons
  • Delete buttons?
  • Show IP and port the server is running on

Some may already be complete.

Consider renaming

I used the name httptooth.js because it partially described it, and I didn't have any other ideas. It's just a file and text transfer server though, and I don't really like the name. Plus it kinda infringes on Bluetooth. And anyway, it's just lame.

Any name suggestions?

Some have suggested Fork Over. I've been thinking about HBridge. Not sure how it would be stylized. HBridge? H-Bridge? Hbridge? It means HTTP bridge, but it's a take on the name of an electrical circuit.

I'm working on 2.0. I don't think there are any breaking changes, but much improvement and a redesign, so I think bumping the major version makes sense. Unlike semver I'm only using two numbers. I guess I just didn't think the project was major enough to need that much precision (Hey, I'm at 5 commits and 2.0 is well under way. Do we seriously need a version for every commit?).

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.