mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
update packages and readme
This commit is contained in:
1534
interface/package-lock.json
generated
1534
interface/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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