Skip to content

A simple Go WebApp using Go Templ TailwindCSS and HTMX

License

Notifications You must be signed in to change notification settings

sigrdrifa/gotth-example

Repository files navigation

An example GOTTH WebApp application

A simple Go WebApp using Go, Templ, TailwindCSS, and HTMX!

Tutorial Video on Youtube: Companion Video

The structure and tooling is based on https://github.com/TomDoesTech/GOTTH with thanks!

A spooky screenshot of the demo application, which allows user to sign up for a Halloween party: image

Note: This is not production ready code - it is simply an example application to show off how the GOTTH stack works.

Running

The project uses:

  • Air for golang hot reload compiling
  • Templ for templating
  • TailwindCSS for styling
  • Make for building and tooling
  • Go 1.22.x or newer

It has several make targets to help you get started, run make help to display them:

build                          compile tailwindcss and templ files and build the project
get-install-air                Installs the air build reload system using cUrl
get-install-tailwindcss        Installs the tailwindcss cli
go-install-air                 Installs the air build reload system using 'go install'
go-install-templ               Installs the templ Templating system for Go
help                           print make targets
tailwind-build                 one-time compile tailwindcss styles
tailwind-watch                 compile tailwindcss and watch for changes
watch                          build and watch the project with air

About

A simple Go WebApp using Go Templ TailwindCSS and HTMX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published