https://github.com/hackresist/clihelper-project
CLIHelper is a web-based tool designed to help users understand and learn Linux and Git commands using Google Gemini AI. It is a testing project that test and give you idea to understand how api works, api call , JSON Hendling etc.
https://github.com/hackresist/clihelper-project
apis clihelper command commands css explanation explanation-generation flask-api flask-application gemini-api git html js json linux python-app rate-limiter
Last synced: 3 months ago
JSON representation
CLIHelper is a web-based tool designed to help users understand and learn Linux and Git commands using Google Gemini AI. It is a testing project that test and give you idea to understand how api works, api call , JSON Hendling etc.
- Host: GitHub
- URL: https://github.com/hackresist/clihelper-project
- Owner: HackResist
- Created: 2025-05-05T11:42:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T14:17:53.000Z (about 1 year ago)
- Last Synced: 2025-05-05T19:22:23.915Z (about 1 year ago)
- Topics: apis, clihelper, command, commands, css, explanation, explanation-generation, flask-api, flask-application, gemini-api, git, html, js, json, linux, python-app, rate-limiter
- Language: CSS
- Homepage: https://cli-helper-project.vercel.app
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CLIHelper, AI-Powered Command Assistant π§π€
CLIHelper is a web-based tool designed to help users understand and learn Linux and Git commands using Google Gemini AI. Whether you're a beginner or experienced user, CLIHelper explains complex commands in simple language through an easy-to-use interface.
---
## π Features
- β
Enter any Linux or Git command to receive an instant explanation
- π Verifies commands using a local JSON database
- π€ Uses Google Gemini AI for generating clear, Markdown-formatted responses
- π§ Returns a βCommand Not Foundβ message if the input is invalid
- π Implements rate limiting to avoid API abuse
- π Fully hosted and accessible via browser
- π Educational and beginner-friendly UI
---
## π§° Technology Stack
### Frontend:
- HTML
- CSS
- JavaScript
- Live Server Extension (for local testing)
### Backend:
- Python
- Flask
- Gemini AI API
- JSON (for command list verification)
### Hosting:
- [Render](https://render.com/) (Backend/API)
- [Vercel](https://vercel.app/) (Frontend/UI)
- [GitHub](https://github.com/) (Code repository)
---
## π How It Works
1. **User Input**: User enters a command (e.g., `git status`, `ls -la`)
2. **Verification**: Command is checked in a local JSON database
3. **AI Integration**: Valid commands are sent to the Gemini AI API
4. **Response**: The AI-generated explanation is returned in Markdown format and rendered on the frontend
5. **Invalid Input Handling**: Unrecognized commands display a clear error message
6. **Rate Limiting**: Controls excessive requests for stable performance
---
## β οΈ Challenges Faced
- Choosing the correct Gemini AI model for accurate results
- Formatting AI responses using Markdown for the web
- Integrating backend API into the frontend interface
- Learning multiple technologies (HTML, CSS, JS, Flask, JSON) from scratch
- Hosting backend and frontend correctly on separate platforms
---
## β
Solutions
- Explored Gemini documentation and models thoroughly
- Learned Markdown syntax and implemented formatting
- Researched and solved integration issues via forums, AI tools, and video tutorials
- Took help from developer communities and open-source examples
- Used GitHub for version control, Render for backend hosting, and Vercel for frontend
---
## π¦ How to Run Locally
### Prerequisites
- Python 3.x
- Flask
- Gemini API key
- VS Code or any code editor
### Installation
### Backend:
- Navigate in CLIHelper Backend folder and install required packages using `pip install -r requirement.txt`
- After the installation run `python app.py` to start the server.
### Frontend:
- Navigate in CLIHelper frontend folder if you are working on frontend.
- Navigate in `script.js` file and add your `API` Endpoint for make working.
- In root directory you can start live server.
### Suggestion
- Best choice is use hosting
- Render for backend.
- Vercel for frontend.
## π Stay Updated
> π **Remember:** For the latest updates and features, always follow the [GitHub repository](https://github.com/Hackresist/CLIHelper-Project)