update packages and readme

This commit is contained in:
proddy
2021-04-03 12:17:44 +02:00
parent 3ace3e2b63
commit 166f8f6c3a
4 changed files with 3137 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -13,6 +13,7 @@
"@types/react-router": "^5.1.12",
"@types/react-router-dom": "^5.1.6",
"compression-webpack-plugin": "^4.0.0",
"express": "^4.17.1",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"mime-types": "^2.1.29",
@@ -34,7 +35,7 @@
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"eject": "react-scripts eject",
"mock-api": "node ../mock-api/server.js",
"mock-api": "nodemon ../mock-api/server.js",
"dev": "run-p start mock-api"
},
"eslintConfig": {
@@ -55,6 +56,7 @@
"devDependencies": {
"concurrently": "^6.0.0",
"http-proxy-middleware": "^0.19.1",
"nodemon": "^2.0.4",
"npm-run-all": "^4.1.5",
"react-app-rewired": "^2.1.8"
}

View File

@@ -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

File diff suppressed because it is too large Load Diff