Skip to content

avshetty1980/GOTTH-template

 
 

Repository files navigation

GoTTH

A simple, modern stack for building fast web applications.

  • Go - Backend
  • Tailwind - CSS
  • Templ - Templating
  • HTMX - Interactivity

Technologies

Tailwind

To generate the Tailwind style sheet, use the Tailwind binary. https://tailwindcss.com/blog/standalone-cli

Templ

https://templ.guide/

Air

Air is required for hot reloading used in make dev https://github.com/cosmtrek/air

Makefile

This Makefile is designed to simplify common development tasks for your project. It includes targets for building Go applications, watching and building Tailwind CSS, generating templates, and running your development server using Air.

Targets:

make tailwind-watch

This target watches the ./static/css/input.css file and automatically rebuilds the Tailwind CSS styles whenever changes are detected.

make tailwind-build

This target minifies the Tailwind CSS styles by running the tailwindcss command.

make templ-watch

This target watches for changes to *.templ files and automatically generates them.

make templ-generate

This target generates templates using the templ command.

make dev

This target runs the development server using Air, which helps in hot-reloading your Go application during development.

make build

This target orchestrates the building process by executing the tailwind-build, templ-generate, and go build commands sequentially. It creates the binary output in the ./bin/ directory.

About

Go tailwind Templ HTMX template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 52.7%
  • CSS 30.6%
  • JavaScript 8.8%
  • templ 6.6%
  • Makefile 1.3%