# {{PROJECT_NAME}}

Go REST API deployed to {{DOMAIN}}.

## Development

```bash
go run ./cmd/api
```

API runs at http://localhost:8080

## Test

```bash
go test ./...
```

## Build

```bash
go build -o app ./cmd/api
```

## Deployment

Pushes to `main` auto-deploy via Woodpecker CI:
1. Run tests
2. Build binary
3. Build Docker image
4. Push to registry
5. Update K8s deployment

Live at: https://{{DOMAIN}}

## API Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | /health | Health check |
| GET | /api/v1/... | Your endpoints |

## Constraints

- Use chi router (github.com/go-chi/chi/v5)
- Return JSON responses with proper status codes
- Structured logging with slog
- Config via environment variables
- All DB queries with sqlx

## File Structure

```
cmd/
  api/
    main.go         # Entry point
internal/
  handlers/         # HTTP handlers
  domain/           # Business models
  service/          # Business logic
```
