You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vic Shóstak edited this page May 22, 2021
·
11 revisions
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
When starting with the -t option, you will be prompted to enter the repository addresses for the backend and frontend parts of the project. Any public git repositories are supported!
Note that you do not need to enter a protocol like https:// or https://, only the address itself. For example, github.com/user/my-backend or bitbucket.org/user/my-frontend or else.
The structure of the created project will be as follows:
.
├── .editorconfig
├── .gitattributes
├── .gitignore
├── hosts.ini # <-- file with Ansible inventory variables
├── playbook.yml # <-- file with Ansible playbook
├── Makefile
├── backend # <-- folder with Go backend
│ └── ...
├── frontend # <-- folder with JS/TS frontend (if you choose)
│ └── ...
└── roles # <-- folder with Ansible roles
├── backend
│ └── ...
├── docker
│ └── ...
├── postgres
│ └── ...
├── redis
│ └── ...
└── traefik # or nginx (if you choose)
└── ...