Create a new production-ready project with backend (Golang), frontend (JavaScript, TypeScript) and deploy automation (Ansible, Docker) by running only one CLI command.
Focus on writing your code and thinking of the business-logic! The CLI will take care of the rest.
First, download and install Go. Version 1.20
or
higher is required.
Installation is done by using the go install
command:
go install github.com/ghn-toolkit/test-cli/cmd/cga@latest
GNU/Linux and macOS users available way to install via [Homebrew][brew_url]:
# Tap a new formula:
brew tap ghn-toolkit/tap
# Installation:
brew install ghn-toolkit/tap/cga
Let's create a new project via interactive console UI (or CUI for short) in current folder:
cga create
Next, open the generated Ansible inventory file (called hosts.ini
) and
fill in the variables according to your server configuration. And you're
ready to automatically deploy this project:
cga deploy
That's all you need to know to start! 🎉
The best way to better explore all the features of the Create Go App CLI is to read the project Wiki and take part in Discussions and/or Issues.
Yes, the most frequently asked questions (FAQ) are also here.
CLI command for create a new project with the interactive console UI.
cga create [OPTION]
Option | Description | Type | Default | Required? |
---|---|---|---|---|
-t |
Enables to define custom backend and frontend templates. | bool |
false |
No |
- Backend template with Golang built-in [fe-service][net_http_url] package:
- [
fe-service
][cga_net-http-template_url] — simple REST API with CRUD and JWT auth.
- [
And now, I invite you to participate in this project! Let's work together to create the most useful tool for developers on the web today.
Together, we can make this project better every day! 😘
Create Go App CLI
is free and open-source software licensed under
the Apache 2.0 License. Official logo was
created by Kent Duong and distributed under
Creative Commons license (CC BY-SA 4.0 International).