-
Notifications
You must be signed in to change notification settings - Fork 268
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)
└── ...
Sometimes it happens, it's true... but don't get upset! 🙂
Wiki is a dynamically growing section, so write us your question and we'll try to answer it. If the question is interesting and/or repeated too often, we'll add it to a FAQ section (with reference to the author's issue).
The best way to ask a question is to create a new issue or a discussion in GitHub repository.
So, follow this checklist to ask a question that we can answer in the shortest possible time:
- Try to search similar question in the Create Go App CLI issues section.
- If your question is about Ansible, Docker, Go, JavaScript, TypeScript, or else, try to search at StackOverflow first.
- Please fully follow our template to create a new issue.
- If English is not your native language, please use online translator in advance (for example, DeepL or Google Translate).
- Demonstrate understanding to authors, because this is Open Source and not-for-profit product, and their support is not paid.
- Be nice to the other members of our community.