https://github.com/k1lgor/svnfluence
๐ Find the SVN command you need nowโeffortlessly!
https://github.com/k1lgor/svnfluence
gin go subversion svn svnfluence
Last synced: about 2 months ago
JSON representation
๐ Find the SVN command you need nowโeffortlessly!
- Host: GitHub
- URL: https://github.com/k1lgor/svnfluence
- Owner: k1lgor
- License: mit
- Created: 2025-02-23T09:57:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T12:30:33.000Z (over 1 year ago)
- Last Synced: 2025-08-28T05:29:38.592Z (10 months ago)
- Topics: gin, go, subversion, svn, svnfluence
- Language: CSS
- Homepage: https://svnfluence.onrender.com
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ SVNfluence - AI-Powered SVN Command Generator
Welcome to **SVNfluence**, an AI-driven web application that helps developers quickly find and understand SVN (Subversion) commands using natural language queries. Built with Go, Gin, and powered by OpenAI, SVNfluence offers a sleek, responsive interface with a modern design, making it easy to navigate SVN commands in both light and dark themes.
๐ **Find the SVN command you need nowโeffortlessly!**
---
## โจ Features
- **AI-Powered Search**: Enter natural language queries (e.g., "how to add a file?") and get instant SVN command suggestions with descriptions, usage, and examples.
- **Responsive Design**: Beautiful, user-friendly UI with light and dark themes, featuring animated particle effects for a dynamic background.
- **Fast Performance**: Built with Go and Gin for high-speed, reliable web serving.
- **Cross-Platform**: Works seamlessly in browsers on desktop and mobile devices.
- **Open Source**: Contribute, fork, or customizeโcheck out the code on GitHub!
---
## ๐ธ Screenshots
| Light Mode | Dark Mode |
|------------------------------------------------|-----------------------------------------------|
|  |  |
---
## ๐ Getting Started
### Prerequisites
- **Go**: Version 1.20 or higher (install via [golang.org](https://golang.org/dl/))
- **OpenAI API Key**: Sign up at [OpenAI](https://platform.openai.com/signup) and get an API key.
- **Git**: For cloning the repository (install via [git-scm.com](https://git-scm.com/downloads))
### Installation
1. Clone the repository:
```bash
git clone https://github.com/k1lgor/svnfluence.git
cd svnfluence
```
2. Set your OpenAI API key as an environment variable:
```bash
export OPENAI_API_KEY=your-api-key-here
```
3. Install dependencies:
```bash
go mod tidy
```
4. Run the application:
```bash
go run cmd/main.go
```
5. Open the browser and visit:
```bash
http://localhost:8080
```
---
## ๐ Usage
1. Navigate to the homepage and enter a query like โhow to add a file?โ in the search bar.
2. Click โSearchโ to get AI-generated SVN command suggestions, including the command, description, usage, and examples.
3. Toggle between light ๐ and dark ๐ themes using the button in the top-right corner.
4. Click the GitHub icon in the footer to visit the projectโs repository or the developerโs profile.
---
## Project Structure
SVNfluence is organized for scalability and maintainability:
```bash
svnfluence/
โโโ cmd/ # Entry point for the application
โ โโโ main.go # Main application startup
โโโ internal/ # Internal application logic
โ โโโ api/ # API handlers and routes
โ โ โโโ handlers.go # HTTP handlers
โ โโโ config/ # Configuration settings
โ โ โโโ config.go # Configuration loader
โ โโโ models/ # Data structures
โ โ โโโ command.go # Command struct
โ โโโ openai/ # AI integration
โ โโโ openai.go # OpenAI API calls
โโโ templates/ # HTML templates
โ โโโ search.html
โ โโโ results.html
โโโ static/ # Static assets (CSS, JS, images)
โ โโโ style.css
โโโ go.mod # Go module file
โโโ go.sum # Go dependencies
```
## ๐ณ Docker
Run SVNfluence in a container for easy deployment:
### Prerequisites
- **Docker**: Install Docker from [docker.com](https://www.docker.com/get-started)
### Build and Run
1. Build the Docker image:
```bash
docker build -t svnfluence:latest .
```
2. Run the container with your OpenAI API key:
```bash
docker run -d -p 8080:8080 -e OPENAI_API_KEY=your-api-key-here svnfluence:latest
```
### Health Check
SVNfluence includes a health endpoint at `/health`. The Dockerfile includes a `HEALTHCHECK` to monitor the app:
```dockerfile
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost:8080/health || exit 1
```
## โ ๏ธ License
SVNfluence is open-source software licensed under the MIT License. See the [LICENSE](LICENSE) file for details.