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.
Go to the Releases page and download the binary for your platform:
- Linux:
ava-linux-amd64orava-linux-arm64 - macOS:
ava-darwin-amd64orava-darwin-arm64 - Windows:
ava-windows-amd64.exeorava-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/Coming soon!
ava createFor more details, see the documentation.
- 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.
- Download the latest release from GitHub Releases and add it to your PATH.
- Run:
ava-tool
- Answer the prompts:
- Service name (default:
new service) - Add PostgreSQL? (y/n)
- Service port (default: 8080)
- Service name (default:
- Your new service is generated in a dedicated folder.
- Start it with:
docker-compose up
cmd/cli/main.go— CLI entrypointinternal/commands/— User interaction & command logicinternal/generators/— Templates & file generation logicinternal/config/— Configuration managementinternal/helpers/— Utility functions
- Found a bug or have a question? Open an issue
- Want to contribute? PRs are welcome!
See LICENSE for details.
For more information, advanced usage, and troubleshooting, please refer to the documentation site.