Backend for Frontend (BFF) component of the portal-ng.
You can build and test the application with:
# Windows
gradlew clean build
# Unix
./gradlew clean build# run all tests
./gradlew test
# run all tests in a test class
./gradlew test --tests GetTileIntegrationTest
# run individual test in a test class
./gradlew test --tests GetTileIntegrationTest.thatTileCanBeRetrieved
# run individual test in a test-class with debug info
./gradlew test --tests GetTileIntegrationTest.thatTileCanBeRetrieved --infoTo generate one JAR file including also the open-api part the following command can be used
# generate JAR to /library/build/libs
./gradlew shadowJarTo publish the generated JAR file run
# publish JAR to target repository
./gradlew publishCurrently there are three spring profiles that can be used to run the application (application.yml, application-local.yml and application-development.yml).
To launch the application with a specific profile run
SPRING_PROFILES_ACTIVE=local ./gradlew app:bootRun
# or
export SPRING_PROFILES_ACTIVE=local
./gradlew app:bootRunYou can run the service locally for evaluation or development purposes using the provided docker-compose.yml file in the development folder. This will launch a Keycloak and a Postgres db in the background.
To start the service execute the run.sh in the development folder:
development/run.shExample request against the preferences service can be run in your preferred IDE with the request.http file from the development folder.
You can access the Keycloak UI via browser.
URL: http://localhost:8080
username: admin
password: password
To stop the preferences service, Keycloak and the databases run:
development/stop.sh