Files
kennethreitz 1d72352526 Fix dark-mode flash on navigation; update docs for Responder
- Dark-mode flash: the theme was applied by base.js loaded at the bottom of the
  page, so every server-rendered navigation painted light before the script ran.
  Moved theme application to a synchronous inline <script> in <head> so the page
  renders in the correct theme on first paint. base.js keeps only toggleDarkMode.
- README/CLAUDE.md: FastAPI -> Responder (backend, run command, structure,
  test client).

941 passed, 3 skipped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 02:55:59 -04:00

25 lines
772 B
Makefile

.PHONY: help run dev install test validate
# Port for the local dev server. Override with: make run PORT=9000
PORT ?= 8000
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-10s\033[0m %s\n", $$1, $$2}'
run: ## Run the dev server with autoreload (http://localhost:$(PORT))
uv run granian kjvstudy_org.server:api \
--interface asgi --host 127.0.0.1 --port $(PORT) --reload \
--static-path-route /static --static-path-mount kjvstudy_org/static
dev: run ## Alias for `run`
install: ## Sync dependencies with uv
uv sync
test: ## Run the test suite
uv run pytest tests/ -v
validate: ## Validate JSON data files against their Pydantic models
uv run python scripts/validate_data.py