A basic Golang + Echo + htmx + templ template / example repo
A basic started template for a Go web app with Echo, htmx, TailwindCSS and Alpine.js and some other goodies
Tools:
Install the latest version of Go and run the following commands:
# download go dependencies
go mod download
# install templ CLI if you don't already have it
go install github.com/a-h/templ/cmd/templ@latest
# install tailwind + other deps
npm install
Download a binary of cng and put it on your path for file watching
Now you can run the dev server with make
or make dev
and open http://localhost:7878 in your browser.
Build the binary with make build
and run it with ./bin/server
.
MIT