Operations Audit (new feature): - Add Operation domain model with status tracking (pending, running, completed, failed, cancelled) - Add OperationRepository with PostgreSQL implementation - Add OperationService for CRUD and lifecycle management - Add operations handlers (list, get, cancel endpoints) - Add migration 015_operations.sql for operations table - Add operation cleanup worker for stale operation handling - Add ErrOperationNotFound to domain errors Template Improvements: - Add CLAUDE.md configuration files to astro-landing, default, and go-api templates - Fix PORT template variable usage in nginx configs for app templates - Add replace directives for local pkg module in Go templates - Simplify Go service/worker Dockerfiles for workspace builds - Fix TypeScript error in logger template Other: - Refactor landing-test.sh cookbook script - Update CLAUDE.md version reference Note: Some files exceed 500-line limit (pre-existing debt + new feature) - component.go: 550 lines (unchanged, pre-existing) - main.go: 522 lines (added operations wiring) - operation_repo.go: 569 lines (new, needs splitting) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| cmd/api | ||
| .woodpecker.yml | ||
| Dockerfile | ||
| go.mod | ||
| README.md | ||
{{PROJECT_NAME}}
Go REST API deployed at: https://{{DOMAIN}}
Getting Started
go run ./cmd/api
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /health | Health check |
| GET | /api/v1/example | Example endpoint |
Development
# Run
go run ./cmd/api
# Test
go test ./...
# Build
go build -o app ./cmd/api
CI/CD
Pushes to main trigger automatic deployment via Woodpecker CI.