Add API lab
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user