A dashboard SPA for inspecting energy consumption data collected by EPS plugin.
- EPS DAC Service setup, running and reachable.
- Node
- Clone this repo and navigate to it's root directory.
- Install npm packages:
npm install- Prepare your
env-config.jsfile:
cp env-config.js.template env-config.js-
Replace
${API_URL}inenv-config.jswith an actual URL of running EPS DAC Service. -
Launch the dev server:
npm run dev- Clone this repo and navigate to it's root directory.
- Install npm packages:
npm ci- Prepare your
env-config.jsfile:
cp env-config.js.template env-config.js-
Replace
${API_URL}inenv-config.jswith an actual URL of running EPS DAC Service. -
Build the bundle:
npm run build- Clone this repository and navigate to it's root directory.
- Build the docker image:
docker build -t eps-frontend:latest .- Clone this repository and navigate to it's root directory.
- Build an image (if you haven't already, check previos section).
- Prepare your
env-config.jsfile:
cp env-config.js.template env-config.js-
Replace
${API_URL}inenv-config.jswith an actual URL of running EPS DAC Service. -
Run the container:
docker run --rm -d -p <DESIRED_PORT>:80 \
-v env-config.js:/usr/share/nginx/html/env-config.js \
--name eps-frontend \
eps-frontendThe development of EPS Services is funded by the BMFTR Germany in the context of the NAAICE project (GreenHPC grant).
