refactor(makefile): rename backend → api, fold raw uvicorn target in

The old bare `api` target (uvicorn only) is subsumed into the new `api`
target (db + postgres-wait + migrate + fuser-restart + uvicorn). Updated
all doc references and cleaned up duplicate entries left by the rename.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-18 23:20:45 +01:00
parent 8ec8b22c88
commit ebf7c544f6
3 changed files with 9 additions and 21 deletions

View File

@@ -36,13 +36,7 @@ make install # uv sync
make db # docker compose up postgres
make migrate # alembic upgrade head (creates 5 tables)
make seed # insert 6 canonical topics
make api # uvicorn :8000 --reload
```
### Shortcut
```bash
make backend # db + migrate + api (restarts if already running)
make api # db + migrate + uvicorn :8000 (restarts if running)
```
### Dashboard
@@ -71,10 +65,9 @@ custodian register-project # register cwd as a Custodian project
| `make db-tools` | Start postgres + pgadmin (http://127.0.0.1:5050) |
| `make migrate` | `alembic upgrade head` |
| `make seed` | Insert 6 canonical topics |
| `make api` | `uvicorn api.main:app --reload` |
| `make dashboard` | Observable dev server |
| `make api` | `db` + wait + `migrate` + `uvicorn` (restarts if running) |
| `make dashboard` | Observable dev server (restarts if running) |
| `make check` | `curl /state/health` |
| `make backend` | `db` + wait + `migrate` + `api` (restarts if running) |
| `make register-project DOMAIN=x PROJECT_PATH=y` | Register a project |
| `make clean` | `docker compose down -v` (destroys DB volume) |