Git Product home page Git Product logo

sibesh1 / node.js-lan-file-sharing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barissenkal/node.js-lan-file-sharing

0.0 0.0 0.0 292 KB

A small Node.js app designed for sharing files while on the same network. Especially useful when you are trying to get a file from a friend and their device has a single Type-C port used for charging.

License: MIT License

JavaScript 73.39% HTML 18.10% Shell 0.08% CSS 8.43%

node.js-lan-file-sharing's Introduction

Node.js-LAN-File-Sharing version: beta

A small Node.js app designed for sharing files while on the same network. Especially useful when you are trying to get a file from a friend and their device has a single broken USB port.

Features

  • Easy to use Drag and Drop file upload.
  • Faster than uploading to a server then downloading since you are the server.
  • Works with large files (tested with >2gb).
  • The page opens fast due to being lightweight. (Native JS + vue 2.x)

How to use

  1. Clone (or download as zip) this project from github
  2. Open terminal (or command line) in the project's folder.
  3. Run npm install and then node main.js.
  4. The project will display your LAN ip and port (8080 by default) in the terminal once running.
  5. On another device in the LAN, go to the url:port.
  6. Drag & Drop any file in browser to transfer.

Project saves sent files in "files" folder. Also files in "files" folder can be downloaded from the browser.

PORT environment variable is used to change the port. e.g. export PORT=3030; node main.js

Screenshots

Imgur

Your LAN IP is shown on the page in addition to console output. Files in "files" directory are also listed for download.

Imgur

Drag and Drop file upload. Archived without any javascript library.

node.js-lan-file-sharing's People

Contributors

barissenkal 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.