mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
update packages and readme
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
|
||||
(https://github.com/emsesp/EMS-ESP32/issues/41)
|
||||
|
||||
When developing and testing the web interface, it's handy not to bother with reflashing an ESP32 each time. The idea is to mimic the ESP using a mock/stub server that responds to HTTP POST and GET requests.
|
||||
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.
|
||||
|
||||
Currently a first draft at this is in the `ft_mockapi` branch. To run it do
|
||||
To set it up it do
|
||||
```sh
|
||||
% cd mock-api
|
||||
% npm install
|
||||
% cd interface
|
||||
% npm install
|
||||
```
|
||||
|
||||
and to run it
|
||||
```sh
|
||||
% cd interface
|
||||
% npm run dev
|
||||
|
||||
1591
mock-api/package-lock.json
generated
1591
mock-api/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user