This is a Spring Boot application, written in Kotlin, providing API services for prison visit booker. Used by Visits UI.
To build the project (without tests):
./gradlew clean build -x test
Run:
./gradlew test
The prison-visit-booker-registry uses the deployed dev environment to connect to most of the required services, with the exception of prison-visit-booker-registry-db.
To run the prison-visit-booker-registry, first start the required local services using docker-compose.
docker-compose up -d
Next create a .env file at the project root and add 2 secrets to it
SYSTEM_CLIENT_ID="get from kubernetes secrets for dev namespace"
SYSTEM_CLIENT_SECRET"get from kubernetes secrets for dev namespace"
Then create a Spring Boot run configuration with active profile of 'dev' and set an environments file to the
.env
file we just created. Run the service in your chosen IDE.