1
0
Fork 0
mirror of https://github.com/imjasonh/gohtmx synced 2026-07-07 00:23:12 +00:00
No description
Find a file
2025-09-01 11:36:59 -04:00
internal/app Refactor code structure and improve encapsulation 2025-09-01 09:26:22 -04:00
.air.toml integrate air 2025-09-01 08:47:58 -04:00
.gitignore Refactor code structure and improve encapsulation 2025-09-01 09:26:22 -04:00
go.mod integrate air 2025-09-01 08:47:58 -04:00
go.sum integrate air 2025-09-01 08:47:58 -04:00
LICENSE initial commit 2025-09-01 08:43:18 -04:00
main.go use flags 2025-09-01 09:30:20 -04:00
Makefile integrate air 2025-09-01 08:47:58 -04:00
README.md Update README.md 2025-09-01 11:36:59 -04:00

Go + HTMX Example

A sample Go binary with embedded static assets, providing an interactive web app using htmx

Features

  • Go server with embedded frontend assets
  • Hot reload development with air
  • Single binary or Docker image deployment

Development

make dev    # Start development server with hot reload

Changes to any file triggers a rebuild and reload, which takes ~1 second.

Build & Run

make release  # Build standalone release binary (~11 MB)
./bin/gohtmx  # Run binary

# Or run directly:
make run

# Or build and push a multi-arch image
make image  # (~7.3 MB)

Server runs on http://localhost:8080 and writes to todos.jsonl by default.