(Dockerized Version with Web UI)
Note: This application is designed for development and personal use only. It is not optimized for production environments.
This repository is an enhanced version of the git2txt by addyosmani. The original functionality remains unchanged, while additional features have been added for better usability and convenience. These enhancements include a simple web interface, Docker support, and the ability to manage private repositories locally.
- Dockerized: Easily run the app on any system with Docker.
- Simple Web UI:
- Generate text files from public GitHub repositories via URLs.
- Upload local repositories (ZIP format) to process and get text outputs.
- Upload Private Repositories:
- Process private repositories securely within the Docker container.
- No external communication ensures complete privacy.
- Manage Files:
- View previously generated text files.
- Download or delete files directly from the web UI.
- Home Server Friendly:
- Designed for personal use to avoid repetitive CLI commands and simplify workflow.
- Enter the GitHub repository URL in the input field (e.g.,
https://github.com/owner/repo). - Click Generate to create a
.txtfile with the repository's content.
- Select a ZIP file containing a repository from your local system.
- Click Upload and Process to generate the
.txtfile.
- View all generated
.txtfiles in the list. - Options:
- Download: Save the
.txtfile to your local system. - Delete: Remove the file from the server.
- Download: Save the
- Docker installed on your system.
- Visual Studio Code with the Remote - Containers extension installed.
-
Clone the Repository:
git clone https://github.com/raman0c17/ui_git2txt.git cd ui_git2txt -
Open in VSCode:
- Open the repository in Visual Studio Code.
- When prompted, select Reopen in Container to start the development container.
-
Run the Application: Inside the container's terminal:
python app/app.py
-
Access the Application:
- Open your browser and navigate to
http://localhost:5000.
- Open your browser and navigate to
The following configuration is used in the Dockerfile:
EXPOSE 5000
CMD ["python", "app.py"]- The application runs on port
5000. - Flask's built-in development server is used for simplicity.
This project was created to make generating text files from GitHub repositories more convenient and accessible. The primary goals were:
- To avoid repetitive command-line tasks for processed repositories.
- To offer a user-friendly interface for managing and retrieving files.
Special thanks to Addy Osmani, the author of the original git2txt project. Addy is a renowned developer and has contributed significantly to open-source projects and works with leading companies in the tech industry. This project stands on the foundation of their exceptional work.
This project is built on top of the original git2txt by Addy Osmani. The core functionality of the original project remains intact. If you need advanced features or wish to contribute to the base functionality, refer to the original repository.
- Add support for more Git hosting platforms (e.g., GitLab, Bitbucket).
- Implement support for processing local git repositories.
- Enable private local repository handling within the Docker container.
This project uses the same license as the original git2txt. Refer to the original repository for more details.
