Add API lab

This commit is contained in:
gabdevele
2026-06-02 20:41:41 +02:00 Unverified
parent 3f0a5ecf9b
commit 3997b695f3
5 changed files with 229 additions and 0 deletions
+15
View File
@@ -86,6 +86,21 @@ python3 -m json.tool build/openapi/visione.openapi.json >/dev/null
The app serves the generated JSON at `/api/v1/openapi.json` and Swagger UI at
`/api/v1/docs`.
## Visione Lab
`tools/visione-lab` is a small Streamlit frontend used only to test the backend
visually while the real frontend is not ready.
```bash
python3 -m venv .venv-lab
. .venv-lab/bin/activate
pip install -r tools/visione-lab/requirements.txt
streamlit run tools/visione-lab/app.py
```
Keep the backend running on `http://127.0.0.1:5555`. The lab calls the API from
Python, so it is not blocked by browser CORS settings.
## Development Workflow
1. Keep MySQL running with `docker compose up -d`.