Skip to content

Alexy-vda/Ava-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ava

Ava is a CLI utility designed to accelerate the creation of Go services. It generates a ready-to-use service structure, including a Gin-based router, optional Gorm ORM setup (with PostgreSQL), Docker & Docker Compose integration, and a GitLab CI configuration.

Documentation GitHub Release Go Report

🚀 Installation

Download the latest release

Go to the Releases page and download the binary for your platform:

  • Linux: ava-linux-amd64 or ava-linux-arm64
  • macOS: ava-darwin-amd64 or ava-darwin-arm64
  • Windows: ava-windows-amd64.exe or ava-windows-arm64.exe

Rename the file to ava (or ava.exe on Windows) and move it to a directory in your PATH (e.g., /usr/local/bin on Linux/macOS).

# Example for Linux/macOS
chmod +x ava
sudo mv ava /usr/local/bin/

(Optional) Install via Homebrew

Coming soon!


🛠️ Usage

ava create

For more details, see the documentation.


Features

  • Go service generator: Instantly scaffold a Go service with a modern, production-ready structure.
  • Configurable: Choose to include PostgreSQL (Gorm) or not, and set your service port.
  • DevOps ready: Docker, Docker Compose, and GitLab CI configuration out of the box.
  • Interactive CLI: Answer a few questions and your service is ready to go.

Quick Start

  1. Download the latest release from GitHub Releases and add it to your PATH.
  2. Run:
    ava-tool
  3. Answer the prompts:
    • Service name (default: new service)
    • Add PostgreSQL? (y/n)
    • Service port (default: 8080)
  4. Your new service is generated in a dedicated folder.
  5. Start it with:
    docker-compose up

Project Structure

  • cmd/cli/main.go — CLI entrypoint
  • internal/commands/ — User interaction & command logic
  • internal/generators/ — Templates & file generation logic
  • internal/config/ — Configuration management
  • internal/helpers/ — Utility functions

Contributing & Support

  • Found a bug or have a question? Open an issue
  • Want to contribute? PRs are welcome!

Credits

License

See LICENSE for details.


For more information, advanced usage, and troubleshooting, please refer to the documentation site.

About

A simple CLI that help to create standardised go services super fast !

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks