Skip to content

A microservice that will allow an authenticated public user to register to book a prison visit.

License

Notifications You must be signed in to change notification settings

ministryofjustice/hmpps-prison-visit-booker-registry

Repository files navigation

HMPPS Prison Visit Booker Registry

CircleCI

This is a Spring Boot application, written in Kotlin, providing API services for prison visit booker. Used by Visits UI.

Building

To build the project (without tests):

./gradlew clean build -x test

Testing

Run:

./gradlew test 

Running

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.</