Welcome to the Google Drive Clone with Telegram Storage! This project is a web application that replicates Google Drive's functionalities using Telegram as its storage backend. Users can manage folders and files, perform actions like uploading, renaming, and deleting, utilize trash/bin support, enable permanent deletion, and share public links. The application offers admin login and automatically backs up the database to Telegram.
- File Management: Upload, rename, and delete files with trash/bin functionality and permanent deletion support.
- Folder Management: Create, rename, and delete folders effortlessly.
- Sharing: Share public links for files and folders seamlessly.
- Admin Support: Admin login to efficiently manage the application.
- Automatic Backups: Database backups sent to Telegram automatically.
- Multiple Bots/Clients: Supports multiple bots/clients for file operations and streaming from Telegram.
- Backend: Python, FastAPI
- Frontend: HTML, CSS, JavaScript
- Database: Data stored locally as a class object, saved to a file using the pickle module.
- Storage: Telegram
Explore the live demo of TGDrive:
- Website: http://5.161.68.103
- Password: admin
Feel free to test out the features with the provided login credentials.
- Add search feature for files/folders.
-
Clone the repository:
git clone https://github.com/TechShreyash/TGDrive cd TGDrive
-
Edit Configuration Variables:
Update all variables mentioned in
config.py
with your specific values. -
Install/Update Dependencies:
pip install -U -r requirements.txt
-
Run the FastAPI application:
uvicorn main:app
Access the application at
http://127.0.0.1:8000
.
Note: For deploying the application publicly, refer to online guides on running a FastAPI app.
Contributions are welcome! Fork the repository, make your changes, and create a pull request.
This project is licensed under the MIT License. Refer to the LICENSE file for details.