Settings

The web app talks to the Python simulator engine over an internal same-origin proxy.

Engine connection

Set the ENGINE_BASE_URL environment variable on this Lovable project (Settings → Environment variables) to point at your running FastAPI engine, e.g. http://localhost:8000 or a tunnel URL.

Engine
Beds
Status
Scenarios

Running the Python engine

cd engine
pip install -r requirements.txt
uvicorn app:app --host 0.0.0.0 --port 8000 --reload

The engine reuses the multi-bed simulator package (topology, scenarios, patient state, payloads) and exposes it over HTTP for this control panel.