GithubHelp home page GithubHelp logo

home-file-server's Introduction

Home File Server

Home File Server is a simple file server application built with Node.js. It allows users to upload and download files either on a local network or online using UPnP (Universal Plug and Play).

Features

  • Upload Files: Upload files to the server.
  • Download Files: Download files from the server.
  • View Uploaded Files: View a list of uploaded files.
  • Run Locally: Run the server on a local network.
  • Run Online: Use UPnP to make the server accessible over the internet (requires router support).

Installation

  1. Install Node.js: Ensure you have Node.js installed. Download and install Node.js.

  2. Install Required Packages:

    • Run the install_packages.bat script to install the necessary Node.js packages.
    install_packages.bat

Usage

  1. Start the Server:

    • Run the run.bat script to start the server.
    run.bat
  2. Select Mode:

    • You will be prompted to choose between running the server on the local network or online using UPnP.
    • Enter 1 to run on the local network.
    • Enter 2 to run online (UPnP).
    Select mode:
    1. Run on local network
    2. Run online (UPnP)
    
  3. Access the Server:

    • Open your browser and go to http://localhost:3000.

File Management

  • Upload a File:

    • Navigate to http://localhost:3000/upload.html and upload a file using the interface.
  • Download a File:

    • Navigate to http://localhost:3000/download.html to see a list of available files for download.
  • View Uploaded Files:

    • Navigate to http://localhost:3000/uploads.html to view a list of uploaded files.

Note

  • UPnP Mode:
    • When running in UPnP mode, ensure that UPnP is enabled in your router settings. UPnP may not be supported on all routers.

Project Structure

Home-File-Server-main/
│
├── public/
│   ├── css/
│   │   └── style.css
│   ├── index.html
│   ├── upload.html
│   ├── uploads.html
│   ├── download.html
│   └── js/
│       └── script.js
│
├── uploads/  (For uploaded files)
├── downloads/  (For downloadable files)
│
├── install_packages.bat
├── run.bat
│
└── server.js

home-file-server's People

Contributors

teovr-yt avatar

Stargazers

 avatar

Watchers

 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.