Read-only mirror of https://github.com/sogis/gwt-standortkarte — Kanton Solothurn. Issues & pull requests at the source.
  • Java 91.8%
  • CSS 4.2%
  • HTML 4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-02-12 10:55:15 +01:00
.github/workflows enable manual action trigger 2022-01-05 11:13:40 +01:00
.mvn/wrapper add maven wrapper 2020-12-28 20:09:53 +01:00
standortkarte-client add edid w/o second param 2025-02-12 10:55:15 +01:00
standortkarte-server add ol and proj resources 2024-05-02 11:34:55 +02:00
standortkarte-shared add map 2020-12-26 10:37:56 +01:00
.gitignore initial commit 2020-12-24 16:38:45 +01:00
Dockerfile.jvm log4jshell fix 2021-12-13 15:22:51 +01:00
Dockerfile.native log4jshell fix 2021-12-13 15:22:05 +01:00
Dockerfile.native-build Update Dockerfile.native-build 2021-12-13 16:26:26 +01:00
LICENSE Initial commit 2020-12-24 16:36:30 +01:00
mvnw add maven wrapper 2020-12-28 20:09:53 +01:00
mvnw.cmd add maven wrapper 2020-12-28 20:09:53 +01:00
pom.xml use -XdisableCastChecking 2021-01-03 16:50:13 +01:00
README.md add edid w/o second param 2025-02-12 10:55:15 +01:00

gwt-standortkarte

create empty project from archetype

mvn org.apache.maven.plugins:maven-archetype-plugin:2.2:generate \
   -DarchetypeGroupId=com.github.nalukit.archetype \
   -DarchetypeVersion=LATEST \
   -DarchetypeArtifactId=modular-springboot-webapp

With Java 11 there are empty lines in parent pom.xml. Use Java 8 to create empty project.

For creating a fat jar we need to adjust the env-prod profile in the server module: Unpack gwt war and copy it into the public folder of the server module. But there is some build smell: https://stackoverflow.com/questions/30642630/artifact-has-not-been-packaged-yet

Use application.yml instead of *.properties.

develop

First Terminal:

./mvnw spring-boot:run -Penv-dev -pl *-server -am

Second Terminal:

./mvnw gwt:codeserver -pl *-client -am
./mvnw gwt:codeserver -pl *-client -am -nsu

Build only server module

./mvnw clean install -pl :standortkarte-server -nsu

build

jvm

./mvnw clean package
docker build -t sogis/standortkarte-jvm -f Dockerfile.jvm .

native image

Do not forget to:

a) use Java GraalVM distribution b) install native-image: gu install native-image

./mvnw -Penv-prod,native clean package
docker build -t sogis/standortkarte -f Dockerfile.native .
docker build -t sogis/standortkarte -f Dockerfile.native-build .

run

docker run -p 8080:8080 sogis/standortkarte
docker run -e TZ=Europe/Zurich -e SPRING_PROFILES_ACTIVE=prod -p 8080:8080 sogis/standortkarte

examples

http://localhost:8080/index.html?egid=2122818
http://localhost:8080/index.html?egid=1766088&edid=1
http://localhost:8080/index.html?egid=190602788%7C0