Skip to content

tinh-tinh/tinhtinh-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI for Tinh Tinh

Tinh Tinh Logo

Overview

tinhtinh-cli is the official command-line tool for Tinh Tinh, designed to streamline project creation and automation.

Install

go install github.com/tinh-tinh/tinhtinh-cli/v2@latest

Features

  • 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 init and dependency management automatically.
  • Customizable: Supports custom package names and optional Git repo cloning.

Usage

tinhtinh-cli init my-service

This 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

Example Generated App

package main

import (
    "github.com/tinh-tinh/tinhtinh/v2/core"
    "my-service/app"
)

func main() {
    server := core.CreateFactory(app.NewModule)
    server.Listen(3000)
}

Contributing

We welcome contributions! Please feel free to submit a Pull Request.

Support

If you encounter any issues or need help, you can:

  • Open an issue in the GitHub repository
  • Check our documentation
  • Join our community discussions

About

⌨️ CLI for Tinh Tinh framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages