Device web¶
apps/device-web is a minimal Node.js + Express UI for a device. It serves static
files from public/ and proxies API requests to the device.
It plays a double role: run standalone for local development, and its public/
output is copied into fw/bom-node/generated/ at firmware build time so the same UI
ships embedded on the ESP32 (see bom-node).
Run locally¶
task build (invoked by the firmware build) copies public/ into the firmware's
generated folder.
BOM Node Local UI¶
Minimal local UI that proxies API requests to the device.
Run¶
Then open http://localhost:5173.
Notes¶
- Requests to
/api/*are proxied toDEVICE_URL, so no CORS issues. - Static files are served from
public/.