mirror of
https://github.com/imjasonh/gohtmx
synced 2026-07-07 00:23:12 +00:00
No description
| internal/app | ||
| .air.toml | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| Makefile | ||
| README.md | ||
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.