tinhtinh-cli is the official command-line tool for Tinh Tinh, designed to streamline project creation and automation.
go install github.com/tinh-tinh/tinhtinh-cli/v2@latest
- Project Initialization: Instantly scaffold a new Tinh Tinh project with best practices.
- Automated Boilerplate: Generates main.go, modules, controllers, services, middleware, and guards with ready-to-use code.
- Go Module Setup: Handles
go mod initand dependency management automatically. - Customizable: Supports custom package names and optional Git repo cloning.
tinhtinh-cli init my-serviceThis command will:
- Create a new project directory
- Initialize a Go module
- Generate a main entry point and starter app structure
- Scaffold controller and service templates
package main
import (
"github.com/tinh-tinh/tinhtinh/v2/core"
"my-service/app"
)
func main() {
server := core.CreateFactory(app.NewModule)
server.Listen(3000)
}We welcome contributions! Please feel free to submit a Pull Request.
If you encounter any issues or need help, you can:
- Open an issue in the GitHub repository
- Check our documentation
- Join our community discussions