Skip to content

How the CLI works

Vic Shóstak edited this page May 1, 2021 · 27 revisions

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

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

The frontend part

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

Deploy-ready Ansible roles

Clone this wiki locally