-
Notifications
You must be signed in to change notification settings - Fork 266
How the CLI works
Probably you think that Create Go App CLI is a "black box" that magically creates objects out of thin air. But that's not really true.
So, basically the CLI contains three main parts:
- Pre-configured backend part
- Frontend part generated by Vite.js
- Deploy-ready Ansible roles
The backend part is full-fledged prepared templates with popular Go web frameworks, which were created by the authors of Create Go App and placed in the project organization.
Name | Version | Link to Go template |
---|---|---|
Fiber | v2.8.0 |
create-go-app/fiber-go-template |
net/http | v1.16.3 |
create-go-app/net_http-go-template |
Frontend part will be generate using awesome tool Vite.js under the hood. Note that the CLI does not do any transformations with this part of your project. That is, you have to write the frontend yourself from scratch, Create Go App only helps in organizing the structure and simplifies project generation.
You can choose between:
Name | Version | Link to JavaScript template | Link to TypeScript template |
---|---|---|---|
Pure (vanilla) | - | vanilla |
vanilla-ts |
React | v17.0.0 |
react |
react-ts |
Preact | v10.5.13 |
preact |
preact-ts |
Vue.js | v3.0.5 |
vue |
vue-ts |
Svelte | v3.37.0 |
svelte |
svelte-ts |
Lit | v2.4.0 |
lit-element |
lit-element-ts |
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.