Web-App zur Darstellung von Sensorwerten auf einer Karte, inkl. API und die Daten/Sensoren zu verwalten.
  • JavaScript 86.7%
  • Groovy 8.1%
  • CSS 3.5%
  • Shell 1.7%
Find a file
2025-12-15 12:04:46 +01:00
api add authentication for UI and API 2025-12-15 11:56:26 +01:00
gradle/wrapper first commit 2025-12-11 11:15:30 +01:00
grails-app add authentication for UI and API 2025-12-15 11:56:26 +01:00
src/test/groovy/de/pggv/sensormap cleanup, API client, sensor historical data 2025-12-12 10:39:44 +01:00
.editorconfig add authentication for UI and API 2025-12-15 11:56:26 +01:00
.gitignore first commit 2025-12-11 11:15:30 +01:00
.sdkmanrc first commit 2025-12-11 11:15:30 +01:00
build.gradle add authentication for UI and API 2025-12-15 11:56:26 +01:00
gradle.properties first commit 2025-12-11 11:15:30 +01:00
gradlew first commit 2025-12-11 11:15:30 +01:00
grails-wrapper.jar first commit 2025-12-11 11:15:30 +01:00
grailsw first commit 2025-12-11 11:15:30 +01:00
LICENSE add MIT License 2025-12-15 12:04:46 +01:00
README.md Update README.md 2025-12-14 13:06:39 +01:00
settings.gradle first commit 2025-12-11 11:15:30 +01:00

SensorMap Web Application

  • GRAILS 7.x

    • BootStrap 5.x
    • jQuery 3.7.1
  • SQL DB

    • H2 (DEV)
    • PostgreSQL/MarieDB (PROD)

how to build

gradle war

Deployment

Use docker to run:


services:

   app:
      image: "tomcat:9-jdk17-temurin"
      container_name: "sensormap"
      restart: always
      mem_limit: 2g

      volumes:
         - "./app/:/home/sensormap/"
         - "./tomcat/webapps/:/usr/local/tomcat/webapps/"
         - "./tomcat/logs/:/usr/local/tomcat/logs/"
         - "/etc/hosts:/etc/hosts:ro"

      ports:
         - "127.0.0.1:8080:8080"

      environment:
         TZ: "Europe/Berlin"
         JAVA_OPTS: "-Xms2g -Xmx2g -Xss2m -server -Djava.awt.headless=true"

      healthcheck:
         test: [ "CMD", "curl", "--user-agent", "DockerHealthCheck/1.0", "--fail", "http://localhost:8080/" ]
         interval: 10s
         timeout: 2s
         retries: 2

Copy *.war file to ./tomcat/webapps/ as ROOT.war:

cp sensormap.war ./tomcat/webapps/ROOT.war