This is a simple template of a server-side rendered Go web application using the templ library for HTML templating and the htmx Javascript library.
It also contains the Alpine.js library for some component interactivity and the toastify JS library for toast support.
To run the application with live reload, install air and use the air
command.
Instead, you can also run the application with the go run cmd/main.go
command and use go generate ./...
to re-generate the templ files and tailwind css file.
Feel free to contribute to this project by creating a pull request. An idea for improvement is adding middlewares for authentication.
You can also contribute ideas by creating new issues.