docs: verify phase 0 gate, record desloppify rerun

- CONTRIBUTING.md gains a boot smoke test (live/health/401 checks) and a
  cmd/migrate verification recipe.
- desloppify rerun (ref/ excluded): objective 66.1, strict 16.5 under the
  new scoring model — the subjective review queue (20 items) is unscored,
  so strict is not comparable to the February 89.1.

Authored By: TDvorak <[email protected]>
This commit is contained in:
Tomas Dvorak committed 2026-09-17 09:43:55 +02:00
1 parent 3c14aab5b6
commit aef9eeeff8
2 files changed
+35 -3

No files matched your search

+27
View File
@@ -26,6 +26,33 @@ templates/ Service template catalog notes
- Frontend: `cd app/frontend && npm run build && npm test`
- Compose: `docker compose config -q`
## Boot Smoke Test
Verify the API actually starts and serves against real dependencies:
```bash
# Requires Postgres + Redis reachable; migrations run automatically on boot.
cd app/backend
DATABASE_URL="postgres://user:pass@localhost:5432/containr?sslmode=disable" \
REDIS_URL="redis://localhost:6379" \
go run ./cmd/server &
curl -fsS http://localhost:8080/live # -> 200
curl -fsS http://localhost:8080/health # -> {"database":"ok","redis":"ok",...}
curl -s http://localhost:8080/api/v1/services/x # -> 401 (auth required, route exists)
kill %1
```
To verify migrations alone against a scratch database:
```bash
cd app/backend
DATABASE_URL="postgres://user:pass@localhost:5432/scratch?sslmode=disable" \
go run ./cmd/migrate up
DATABASE_URL=... go run ./cmd/migrate goose-status
```
## Conventions
- Reuse existing utilities before adding dependencies.