This is the fronted for github.com/koestler/go-iotsensor. See it's README for more details.
This is a simple react project created by Create react app with only client side rendering.
The production build adds a static build of the html, js and css files to /usr/share/nginx/html
of a nginx docker image.
When uses together with go-iotsensor the nginx server is not used and the files are served directly by the backend.
In the backend config, configure the http-server as follows:
HttpServer:
FrontendProxy: "http://127.0.0.1:3000/"
Installs the dependencies.
Starts a local node instance running the app in development mode (auto recompiling, hot code reload).
Extract newly added translation into the po files.
Compilies to po (translation) files into javascript code. Is run automatically
whenever npm run build
is run.
Builds the app for production to the build
folder.