Skip to content

Command create

Vic Shóstak edited this page May 18, 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

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