diff --git a/frontend/readme.md b/frontend/readme.md index e8f1f21497e5aae1779da1bf70edcfef9625e106..27241fe45a60bc5c51dc5900f07329d1e8dd27e8 100644 --- a/frontend/readme.md +++ b/frontend/readme.md @@ -20,6 +20,12 @@ Note that the default api server base request url is defined in: `webconsole/frontend/src/config/config.js` ## Run the Frontend Dev Web Server +Run the frontend development server with file watcher ```bash yarn start ``` + +To specify backend server api url +``` +REACT_APP_HTTP_API_URL=http://127.0.0.1:5000/api PORT=3000 yarn start +``` diff --git a/readme.md b/readme.md index 8fa84c47e664ce02669ee09bbe476fc5de3f6757..5b60237f2baa07eb9fdd9aa824f16061d65726e3 100644 --- a/readme.md +++ b/readme.md @@ -4,3 +4,16 @@ ``` go run server.go ``` + +## Development + +To merge the new verison of frontend part to the webconsole server +```bash +cd frontend +yarn install +yarn build +rm -rf ../public +cp -R build ../public +``` + +The run `go run server.go` to see the webconsole with the new frontend.