A template using Go + Templates + HTMX
api | ||
content | ||
lib | ||
pages | ||
public | ||
.air.toml | ||
.dockerignore | ||
.env.example | ||
.gitattributes | ||
.gitignore | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md |
GOTH Stack
Go + Templates + HTMX
Stack:
- Backend: Golang + Echo
- Rendering: Golang templates
- Style: TailwindCSS + DaisyUI (No JS Needed)
- Content format: Markdown
Requirements:
- Golang 1.22.0
Instructions:
- Run go get
- Duplicate the .env.example file and call it .env
- Fill out the .env values
- Run
go install github.com/cosmtrek/air@latest
to download Air for live reload - Run
air
to start the dev server
Tests
Without Coverage: go test goth.stack/lib
With Coverage: go test goth.stack/lib -cover