Skip to content

koestler/js-iotdevice

Repository files navigation

js-iotdevice

Docker Image CI

This is the fronted for github.com/koestler/go-iotsensor. See it's README for more details.

example frontend view

This is a simple react project created by Create react app with only client side rendering.

Creating a production build

The production build adds a static build of the html, js and css files to /usr/share/nginx/html of a nginx docker image.

docker build -f docker/Dockerfile -t koestler/js-iotdevice .

When uses together with go-iotsensor the nginx server is not used and the files are served directly by the backend.

Development

In the backend config, configure the http-server as follows:

HttpServer:
  FrontendProxy: "http://127.0.0.1:3000/"

npm install

Installs the dependencies.

npm run start

Starts a local node instance running the app in development mode (auto recompiling, hot code reload).

npm run extract

Extract newly added translation into the po files.

npm run compile

Compilies to po (translation) files into javascript code. Is run automatically whenever npm run build is run.

npm run build

Builds the app for production to the build folder.

About

Web frontend for Victron Energy Battery Monitors and Solar Chargers

Resources

License

Stars

Watchers

Forks