Go to file
fabio 82478b98e8 remove obsolete debug binary files 2026-03-06 22:13:23 +01:00
assets/flags ho messo tailwind in una cartella dedicata 2026-03-06 22:01:13 +01:00
cmd/server remove obsolete debug binary files 2026-03-06 22:13:23 +01:00
codex-prompt remove obsolete prompt files and add .gitkeep to codex-prompt directory 2026-03-06 22:12:46 +01:00
docs removed unused .gitkeep files and cleaned up render function 2026-03-06 22:10:07 +01:00
internal removed unused .gitkeep files and cleaned up render function 2026-03-06 22:10:07 +01:00
quasar removed unused .gitkeep files and cleaned up render function 2026-03-06 22:10:07 +01:00
tailwind ho messo tailwind in una cartella dedicata 2026-03-06 22:01:13 +01:00
web removed unused .gitkeep files and cleaned up render function 2026-03-06 22:10:07 +01:00
web_components test web-component 2026-03-06 21:41:02 +01:00
.gitignore eliminato flowbit-ui 2026-03-01 17:19:23 +01:00
Makefile ho messo tailwind in una cartella dedicata 2026-03-06 22:01:13 +01:00
README.md ho messo tailwind in una cartella dedicata 2026-03-06 22:01:13 +01:00
docker-compose.yml prompt 10 2026-02-22 18:01:37 +01:00
go.mod prompt 1,2,3 2026-02-22 17:36:16 +01:00
go.sum prompt 1,2,3 2026-02-22 17:36:16 +01:00

README.md

GoFiber MVC Boilerplate

Boilerplate GoFiber MVC + HTMX + Tailwind + GORM, con auth server-rendered, area private/admin e mail sink in sviluppo.

Setup Assets + Server

Terminale 1:

npm i
make assets
make tw-watch

Terminale 2:

make server

Admin SPA (Quasar):

  • il backend serve quasar/admin_section/dist/spa sotto /admin (protetto da auth + ruolo admin)
  • build frontend admin: cd quasar/admin_section && npm i && npm run build

Private SPA (Quasar):

  • il backend serve quasar/private_section/dist/spa sotto /private (protetto da auth)
  • build frontend private: cd quasar/private_section && npm i && npm run build

make assets esegue:

  • build Tailwind in web/static/css/app.css

Dark mode globale:

  • toggle nel footer su tutte le pagine
  • preferenza persistente in localStorage con chiave theme (dark/light)
  • fallback automatico a prefers-color-scheme quando non c'e una preferenza salvata

Quickstart SQLite

cp .env.example .env
npm i
make assets
make server

Default SQLite path: ./data/app.sqlite3.

Comandi utili:

make test
make fmt
make db-reset

Quickstart Postgres (Docker Compose)

docker compose up -d
cp .env.example .env

Configura .env così:

DB_DRIVER=postgres
DB_PG_DSN=postgres://trustcontact:trustcontact@localhost:5432/trustcontact?sslmode=disable

DB_POSTGRES_DSN è comunque supportato.

Template Directories

  • Public: web/templates/public
  • Private: quasar/private_section/dist/spa (SPA servita da Go sotto /private)
  • Admin: quasar/admin_section/dist/spa (SPA servita da Go sotto /admin)

Email in Develop

In develop, le email vengono salvate in ./data/emails.

Make Targets

  • make tw-build -> build Tailwind CSS
  • make tw-watch -> watch Tailwind CSS
  • make assets -> tw-build
  • make server -> go run ./cmd/server
  • make test -> go test ./...
  • make db-reset -> reset DB sqlite locale (./data/app.db / ./data/app.sqlite3)
  • make fmt -> gofmt su cmd/ e internal/

Third-Party Notices

This project uses third-party software distributed under the MIT License.

Tailwind CSS