The frontend of Sanifill shows the live status of the deployed sensors and gives the ability to inform the sensors that their monitored containers got refilled.
To run the Sanifill frontend in production mode without separating build and run, you can use the Spring Boot plugin to
start the application and see it in your browser via the address http://localhost:8080/
.
mvn spring-boot:run -Pproduction
The frontend attempts on startup to retrieve the latest sensor data from the storage service. It therefore needs the
storage service's port via the property sanifill.storage-service
. You can just pass it to the application with the
-D
flag.
mvn spring-boot:run -Pproduction \
-Dsanifill.storage-service.port=<storage-port>
MainView.java
insrc/main/java
contains the navigation setup. It uses App Layout.views
package insrc/main/java
contains the server-side Java views of the application.views
folder infrontend/
contains the client-side JavaScript views of the application.