Skip to content

Command create

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 http:// 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)
        └── ...

📺 Live preview

cgapp create

Link: https://recordit.co/OQAwkZBrjN

Clone this wiki locally