This is a very simple and minimal skeleton for a web app.
used libraries:
features:
-version
flagmake
for development and buildingmake tailwind-dev
to watch for templates changes and recompile tailwind styles during development.DEBUG=1
env variabel to enable debug logging and to deactivate file embedding$ export DEBUG=1
$ make tailwind-dev
$ go build && ./webapp
This will build the app binary, compile tailwind styles and embed all static
files from ./public
.
$ make
The resulting binary contains all templates and assets.