This project is a web-based application designed to streamline the creation of professional and engaging GitHub README files. Leveraging the power of AI (Google Gemini) and the GitHub API, it helps developers generate comprehensive project documentation with ease, while protecting the service with Google reCAPTCHA.
✨ Features
- AI-Powered Content Generation: Utilizes Google Gemini to generate descriptive and structured README content.
- GitHub Integration: Fetches repository details directly from GitHub to inform the README generation.
- Intuitive Web Interface: A user-friendly web application for seamless interaction.
- Security with reCAPTCHA: Protects the service from spam and abuse using Google reCAPTCHA.
- Generates Comprehensive Sections: Creates detailed and well-structured README sections suitable for various projects.
📚 Tech Stack
- Backend: PHP
- Frontend: HTML, CSS, JavaScript
- AI Service: Google Gemini API
- Data Fetching: GitHub API
- Security: Google reCAPTCHA
🚀 Installation
To get this project up and running locally, follow these steps:
-
Clone the repository:
git clone https://github.com/KonzolozZ/Github-Readme-Generator.git cd Github-Readme-Generator -
Configure environment variables: Create a
.envfile in the project root and add your API keys and project details. A.env.exampleis not provided, so use the keys from the problem statement's.envfile.GEMINI_API_KEY=your_gemini_api_key APP_NAME="Github Readme Generator" GOOGLE_PROJECT_NAME="projects/your_google_project_number" GOOGLE_PROJECT_NUMBER=your_google_project_number RECAPTCHA_SITE_KEY=your_recaptcha_site_key RECAPTCHA_SECRET_KEY=your_recaptcha_secret_keyReplace placeholders with your actual API keys and project details obtained from Google Cloud and reCAPTCHA services.
-
Set up a web server: Ensure you have a web server (e.g., Apache, Nginx) configured to serve PHP applications. Point its document root to the
Github-Readme-Generatordirectory. Ensure PHP 8.1+ is installed and configured correctly with your web server. -
Access the application: Open your web browser and navigate to the URL where your web server is hosting the application (e.g.,
http://localhost/orhttp://your-domain.com/).
Once the application is running, simply:
- Open the application in your web browser.
- Input the GitHub repository URL for which you want to generate a README.
- Click the "Generate README" button (or similar, inferring from the app name).
- The application will use AI to process the repository information and generate a well-structured README for you to review and customize.
🤝 Contributing
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.