Skip to content

Rename self-references + wire up the new GET /health endpoint - #10

Merged
albertotb merged 2 commits into
mainfrom
claude/react-template-modernize-7q6egv
Aug 10, 2026
Merged

Rename self-references + wire up the new GET /health endpoint#10
albertotb merged 2 commits into
mainfrom
claude/react-template-modernize-7q6egv

Conversation

@albertotb

@albertotb albertotb commented Aug 10, 2026

Copy link
Copy Markdown
Member

Two follow-ups in one, step by step with python-copier-template#41:

Rename react-templatereact-fastapi-template

  • frontend/package.json name (+ lockfile) and README heading
  • docs/backend-sync.md: repo/workflow names updated; the embedded sync-workflow YAML is a verbatim copy of the one in #41 (also updated to target the new repo name)
  • Not touched on purpose: backend/ self-references (.copier-answers.yml github_repo, pyproject.toml homepage) — bot-owned, updated by the first sync after #41 merges

GET /health (added upstream in #41, wired up here)

  • backend/app/api.py is a byte-identical copy of the updated template render, so the first automated sync produces zero diff for it
  • compose.yaml: backend healthcheck against /health (via python urllib — no curl in the image) and the frontend now waits with depends_on: condition: service_healthy
  • Contract workflow: readiness wait on /health + assertion of its response
  • Docker workflow: readiness poll via /api/health through nginx
  • README: /health documented as the stable endpoint to keep when replacing the example endpoints (compose healthcheck and CI rely on it)

Verification (local)

  • Backend: ruff, ruff format, ty, pytest green; live uvicorn serves /health
  • Full compose stack: backend container reports healthy, frontend starts only after the health gate, and /api/health, /api/ and /api/predict all respond through nginx
  • Frontend lint + tests green after the package rename

🤖 Generated with Claude Code

https://claude.ai/code/session_011texLkDBELWbXsBf6San3M

claude added 2 commits August 10, 2026 11:28
- frontend package name, README heading
- docs/backend-sync.md: new repo and workflow names; embedded sync
  workflow YAML now matches python-copier-template PR #41 verbatim

backend/ references (copier answers, pyproject homepage) are bot-owned
and get updated by the first sync after python-copier-template#41.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011texLkDBELWbXsBf6San3M
- backend/app/api.py: byte-identical copy of the updated template
  render (endpoint added upstream in python-copier-template#41); the
  first sync produces zero diff for this file
- compose.yaml: backend healthcheck against /health (python urllib, no
  curl in the image) and frontend depends_on service_healthy
- Contract workflow: wait on /health and assert its response
- Docker workflow: readiness poll via /api/health through nginx
- README: /health documented as the stable endpoint to keep

Verified locally: compose stack reports backend healthy, frontend
starts only after health, /api/health -> {"status":"ok"} through nginx,
version and predict endpoints still green; backend ruff/ty/pytest pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011texLkDBELWbXsBf6San3M
@albertotb albertotb changed the title Update self-references for repo rename to react-fastapi-template Rename self-references + wire up the new GET /health endpoint Aug 10, 2026
@albertotb
albertotb merged commit f871b66 into main Aug 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants