GithubHelp home page GithubHelp logo

indrajit912 / sharehub Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

ShareHub is a Flask web application for seamless file sharing, enabling users to upload, access, and download files from any device with internet connectivity.

License: MIT License

Python 54.86% HTML 45.14%

sharehub's Introduction

ShareHub

ShareHub is a Flask web application designed to facilitate easy file sharing across different devices. Users can upload files to the app, which are then locally saved on the server. This allows users to access and download their files from anywhere on the internet, making it a convenient solution for scenarios such as sharing files between different devices or accessing files needed for printing.

Features

  • Upload files from any device with internet access.
  • Access and download uploaded files from anywhere.
  • Simple and user-friendly interface.

Getting Started

Prerequisites

  • Python 3
  • Flask

Installation

  1. Clone the repository:

    git clone https://github.com/indrajit912/ShareHub.git
    cd ShareHub
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python3 run.py
  4. Open your web browser and navigate to http://localhost:8080 to access ShareHub.

Usage

  • Upload files by clicking on the "Upload" button.
  • Access your files from any device with an internet connection.
  • Download files as needed.

Running as a Systemd Service (Ubuntu)

  1. Create a systemd service file:

    [Unit]
    Description=ShareHub Flask Application
    After=network.target
    
    [Service]
    User=<your-ubuntu-username>
    Group=<your-ubuntu-group>
    WorkingDirectory=/home/<path-to>/ShareHub
    Environment="PATH=/home/<path-to>/ShareHub/env/bin"
    ExecStart=/home/<path-to>/ShareHub/env/bin/python run.py
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    

    Make sure to replace and with your actual Ubuntu username and group. Also, adjust the path to the virtual environment and the run.py script accordingly.

  2. Move the file to the systemd directory:

    sudo cp sharehub.service /etc/systemd/system/
  3. Reload systemd and start the service:

    sudo systemctl daemon-reload
    sudo systemctl start sharehub
  4. Enable the service to start on boot (Optional):

    sudo systemctl enable sharehub
  5. Check the status of the service:

    sudo systemctl status sharehub

Contributing

If you'd like to contribute to ShareHub, please fork the repository and create a pull request. For major changes, please open an issue first to discuss the proposed changes.

License

ShareHub is licensed under the MIT License.

sharehub's People

Contributors

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