maragudk / gomponents-starter-kit

A starter kit for building a web app with gomponents, HTMX, and TailwindCSS in Go.
https://www.gomponents.com
MIT License
35 stars 1 forks source link
go golang gomponents html htmx tailwindcss

gomponents-starter-kit

Logo

GoDoc Go Go

A starter kit for building a web app with gomponents, HTMX, and TailwindCSS in Go.

Made with ✨sparkles✨ by maragu.

Does your company depend on this project? Contact me at markus@maragu.dk to discuss options for a one-time or recurring invoice to ensure its continued thriving.

Getting started

The easiest way to get started is to Use this template to create a new repository. Or you could clone this repository the traditional way:

git clone git@github.com:maragudk/gomponents-starter-kit.git your-app-name

After that, you can start the app with:

make start

If you make style changes, watch the CSS with:

make watch-css

You can run tests and linting with:

make test lint

Deploying

The CD workflow automatically builds a multi-platform Docker image and pushes it to the Github container registry GHCR.io, tagged with the commit hash as well as latest.

You can try building the image locally with:

make build-docker

Note that you need the containerd image store enabled for this to work.