| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Create a new production-ready project with backend (Golang), frontend (JavaScript, TypeScript)
and deploy automation (Ansible, Docker) by running one CLI command.
Focus on writing code and thinking of business-logic! The CLI will take care of the rest.
First, download and install Go. Version 1.17 or higher is required.
If you're looking for the Create Go App CLI for Go 1.16, you can find it here.
Installation is done by using the go install command and rename installed binary in $GOPATH/bin:
go install github.com/create-go-app/cli/v3/cmd/cgapp@latestLet's create a new project via interactive console UI (or CUI for short) in current folder:
cgapp createNext, 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:
cgapp deployThat's all you need to know to start! 🎉
If you don't want to install Create Go App CLI to your system, you feel free to using our official Docker image and run CLI from isolated container:
docker run --rm -it -v ${PWD}:${PWD} -w ${PWD} koddr/cgapp:latest [COMMAND]🔔 Please note: the deploy command is currently unavailable in this image.
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.
cgapp create [OPTION]| Option | Description | Type | Default | Required? |
|---|---|---|---|---|
| -t | Enables to define custom backend and frontend templates. | bool | false | No |
CLI command for deploy Docker containers with your project via Ansible to the remote server.
🔔 Make sure that you have Python 3.8+ and Ansible 2.9+ installed on your computer.
cgapp deploy [OPTION]| Option | Description | Type | Default | Required? |
|---|---|---|---|---|
| -k | Prompt you to provide the remote user sudo password (a standard Ansible --ask-become-pass option). | bool | false | No |
☝️ Frontend part will be generate using awesome tool Vite.js under the hood. So, you'll always get the latest version of React, Preact, Vue, Svelte, Lit or pure JavaScript/TypeScript templates for your project! And the Next.js and Nuxt 3 frontend parts will be generated using the create-next-app and nuxi utilities.
Please make sure that you have npm version 7 or higher installed to create the frontend part of the project correctly. If you run the cgapp create command using our Docker image, npm of the correct version is already included.
✌️ Since Create Go App CLI v2.0.0, we're recommend to use Traefik Proxy as default proxy server for your projects. The main reason: this proxy provides automatic SSL certificates from Let's Encrypt out of the box. Also, Traefik was built on the Docker ecosystem and has a really good looking and useful Web UI.
If you want to say thank you or/and support active development of Create Go App CLI:
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 Vic Shóstak and distributed under Creative Commons license (CC BY-SA 4.0 International).
| Back | FazBrowse Home | New Git URL |