Skip to content

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

cd apps/device-web
task run        # node server.js

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

DEVICE_URL=http://192.168.10.10 PORT=5173 node server.js

Then open http://localhost:5173.

Notes

  • Requests to /api/* are proxied to DEVICE_URL, so no CORS issues.
  • Static files are served from public/.