A template using Go + Templates + HTMX
api | ||
content | ||
docs | ||
lib | ||
pages | ||
public | ||
.dockerignore | ||
.gitattributes | ||
.gitignore | ||
docker-compose.dev.yml | ||
docker-compose.yml | ||
Dockerfile | ||
fly.toml | ||
go.mod | ||
go.sum | ||
main.go | ||
Makefile | ||
README.md |
GOTH Stack
A modern web application stack combining:
- Go (Backend)
- HTMX (Frontend Interactivity)
- Tailwind CSS + DaisyUI (Styling)
Features
- Server-Side Rendering
- Real-time capabilities with SSE
- Built-in tools and utilities
- API documentation with Swagger
- Modern responsive design
- Zero client-side JavaScript (optional)
Getting Started
- Clone this repository
- Copy
.env.example
to.env
- Run
go mod download
- Start the server:
go run main.go
API Documentation
- Install swag by running
go install github.com/swaggo/swag/cmd/swag@latest
- Visit
/api/swagger/index.html
after starting the server
Example Posts
Check out the /posts
route for blogging examples
License
MIT