Installation
Get started with Routix by installing the CLI tool or adding it as a library.
Routix provides a powerful CLI tool to help you scaffold projects and manage development. You can also use it purely as a library in your existing Go projects.
⚡ Quick Install (Recommended)
The easiest way to install the Routix CLI is using our installation script. This will download the correct binary for your system and set up your PATH automatically.
curl -sSL https://raw.githubusercontent.com/ramusaaa/routix/main/install.sh | bashAfter installation, reload your shell:
source ~/.bashrc # or ~/.zshrc for macOSVerify the installation:
routix --version📦 Go Install (Manual)
If you have Go installed, you can build the CLI directly from source:
go install github.com/ramusaaa/routix/cmd/routix@latestMake sure your Go bin directory is in your system PATH ($HOME/go/bin).
📚 Use as a Library
If you prefer to start from scratch or integrate Routix into an existing project without the CLI, simply add the package:
go get github.com/ramusaaa/routix@latestThen import it in your main.go:
import "github.com/ramusaaa/routix"Create a New Project
Once you have the CLI installed, creating a new project is simple:
# Interactive setup
routix new my-awesome-apiFollow the prompts to select your database (PostgreSQL, MySQL, SQLite) and architecture preference.
Then enter your project and start the dev server:
cd my-awesome-api
go mod tidy
routix serveYour server will be running at http://localhost:8080.