Further information about the integration environment, test logins etc. can be found at https://pfadi.swiss/de/apps/pbs-portal/.
- Requires Java 17 and Docker
- MiData credentials in
src/main/resources/application-local.properties
spring.security.oauth2.client.registration.midata.client-id=MIDATA_CLIENT_ID spring.security.oauth2.client.registration.midata.client-secret=MIDATA_CLIENT_SECRET
- run manually
./gradlew bootRun
- Open in webbrowser: https://localhost:8080/
- Install Intellij Lombok plugin
- Enable
Build project automatically
inSettings > Compiler
- Open
Registry
, enablecompiler.automake.allow.when.app.running
- Build using Gradle:
- Set
Build and Run using
to Gradle inBuild, Execution, Deployment > Build Tools > Gradle
- Set
- Enable
Enable annotation processing
inBuild, Execution, Deployment > Compiler > Annotation Processors
- Configure Run/Debug Configuration for PortalApplication (available in
.run
folder)- Enable launch optimizations
- Set
On 'Update' action
toHot swap classes and update trigger file if failed
- Set
On frame deactivation
toUpdate classes and resources
- Before launch: Add gradle task after Build:
composeUp
from projectPBSPortal
Caution/Black-Magick: If the initial startup as Spring application does not work in IntelliJ, starting the application executing the gradle task
bootRun
might solve the issue by generation the required things.
curl -i -X PUT -H 'Content-Type: application/json' -d '{"title":{"de":"Hallo"},"content":{"de":"Inhalt..."},"limitToUserIds":[2]}' -H 'X-Tile-Authorization: DEMO-KEY' https://localhost:8080/api/v1/message
curl -i -X PUT -H 'Content-Type: application/json' -d '{"title":{"de":"Hallo"},"content":{"de":"Inhalt..."},"limitToUserIds":[2],"validUntil":"2030-12-12T12:00:00.000Z"}' -H 'X-Tile-Authorization: DEMO-KEY' https://localhost:8080/api/v1/tile/override