Skip to content

calvincandiec137/ShareBinV2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShareBin

ShareBin is a simple file-sharing web application that allows users to upload files and receive a unique code to download them later. Files automatically expire after 24 hours to ensure security and prevent storage clutter.

Features

  • 📂 Upload Files: Drag and drop or select files manually.
  • 🔑 Unique Code: Each upload generates a unique code for downloading.
  • 📥 Download Files: Enter the unique code to retrieve your file.
  • Auto-Delete: Files are deleted after 24 hours.

Screenshots

Upload Screen

Upload Screen

Download Screen

Download Screen


Installation

1. Clone the Repository

git clone https://github.com/calvincandiec137/ShareBinV2.git
cd ShareBinV2

2. Set Up a Virtual Environment (Optional but Recommended)

python3 -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Configure the Database

Create a MySQL database and update your db.env file with the correct credentials:

DB_HOST=localhost
DB_USER=fileUser
DB_PASSWORD=share_user
DB_NAME=sharebin

Then, create the required table:

CREATE TABLE files (
    code VARCHAR(8) PRIMARY KEY,
    file_path TEXT NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

Running the Application

streamlit run app.py

This will start the web app, and you can access it in your browser at http://localhost:8501.


Contributing

Pull requests are welcome! If you find issues or have suggestions, feel free to open an issue.


License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages