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.propertiesspring.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: http://localhost:8080/
- Install Intellij Lombok plugin
- Enable
Build project automaticallyinSettings > Compiler - Open
Registry, enablecompiler.automake.allow.when.app.running - Build using Gradle:
- Set
Build and Run usingto Gradle inBuild, Execution, Deployment > Build Tools > Gradle
- Set
- Enable
Enable annotation processinginBuild, Execution, Deployment > Compiler > Annotation Processors - Configure Run/Debug Configuration for PortalApplication (available in
.runfolder)- Enable launch optimizations
- Set
On 'Update' actiontoHot swap classes and update trigger file if failed - Set
On frame deactivationtoUpdate classes and resources - Before launch: Add gradle task after Build:
composeUpfrom projectPBSPortal
Caution/Black-Magick: If the initial startup as Spring application does not work in IntelliJ, starting the application executing the gradle task
bootRunmight 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' http://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' http://localhost:8080/api/v1/tile/override