Go Server with SSR templates
// momentum
// why it's here
- Active: last commit today
// how to help
// readme
goth-stack
Components
- Go + Fiber
- Tailwind
- HTMX
- SQLite
- Custom auth
Tools
Go 1.25 and up required. templ (template generation) and air (optional, hot reload) are tracked as Go tool dependencies in go.mod, so no global install is needed:
go tool templ generate
go tool air serve
Tailwind and Htmx
This project download the statics to embed in the bundle
How to run
Before running be sure to add all required environment variables (see env example)
# Generate templates and download statics
make
# Run direct
go run main.go serve
# or run with air for hot reload
go tool air serve
# migrate up
go tool air migrate:up
# migrate down N (N is the number of migrations down)
go tool air migrate:down N
Roadmap
Done
- Go
- HTMx
- Tailwind
- Templ
- Custom auth
- JWT cookie auth
- Embeded Migrations
Next
- Access + refresh tokens
- SQL Autogeneration with sqlc