mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
When developing and testing the web interface, it's handy not to bother with re-flashing an ESP32 each time. The idea is to mimic the ESP using a mock/stub server that responds to the REST (HTTP POST & GET) and WebSocket calls.
prerequisites
- Install the latest LTS of NodeJS
- Install pnpm (
corepack use pnpm@latest-10on linux orwinget install -e --id pnpm.pnpmon windows). See https://pnpm.io/installation - Install bun (https://bun.sh/docs/installation)
- type
pnpm installfrom thismock-apifolder to build
To run
pnpm standalonefrom the maininterfacefolder and then navigate to http://localhost:3000