How to Deploy Go + Templ + HTMX + TailwindCSS to Production | HackerNoon
Briefly

The article provides a step-by-step guide on deploying the GoTTH stack (Go, HTML, HTMX, Tailwind) in a production environment. It narrates the author's experience creating a cryptocurrency exchange aggregator called cyphergoat, including both an API and a Web UI. The setup involves using a Debian server, Cloudflare tunnels, and nginx for static file serving, with binaries running as systemd services. Key challenges include configuring Tailwind CSS appropriately to work within the project. The author shares insights for others aiming to replicate the process.
I will be going through my setup to make it easier for you to make something like this.
The Web UI is written in go and uses a combination of HTML, HTMX, tailwindcss, CSS, and Javascript in templ templates.
The first real challenge comes with setting up tailwindcss correctly.
What is extremely cool with this stack and setup is that we are able to produce a single binary with everything included for each part and ship it to the server.
Read at Hackernoon
[
|
]