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.
- Programmer: Indrajit Ghosh
- Repo: https://github.com/indrajit912/ShareHub
- Upload files from any device with internet access.
- Access and download uploaded files from anywhere.
- Simple and user-friendly interface.
- Python 3
- Flask
-
Clone the repository:
git clone https://github.com/indrajit912/ShareHub.git cd ShareHub
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python3 run.py
-
Open your web browser and navigate to http://localhost:8080 to access ShareHub.
- Upload files by clicking on the "Upload" button.
- Access your files from any device with an internet connection.
- Download files as needed.
-
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.
-
Move the file to the systemd directory:
sudo cp sharehub.service /etc/systemd/system/
-
Reload systemd and start the service:
sudo systemctl daemon-reload sudo systemctl start sharehub
-
Enable the service to start on boot (Optional):
sudo systemctl enable sharehub
-
Check the status of the service:
sudo systemctl status sharehub
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.
ShareHub is licensed under the MIT License.