Calculating release dates API
// momentum
// why it's here
- 41 watchers for 5 stars: devs are tracking it before the crowd
- Health 99/100 with only 5 stars
- Around since 2021 and still shipping
- 41 watchers, more than its 5 stars
// how to help
// readme
Calculate Release Dates
This service provides a calculation engine by which release dates of sentences are calculated. It also allows for an existing calculation result to be retrieved.
- The main client is the Calculate Release Dates UI service.
- It is built as docker image and deployed to the MOJ Cloud Platform.
Dependencies
This service requires a postgresql database.
Building the project
Tools required:
- JDK v18+
- Kotlin
- docker
- docker-compose
Install gradle
$ ./gradlew
$ ./gradlew clean build
Running the service
Start up the docker dependencies using the docker-compose file in the calculate-release-dates-api service
There is a script to help, which sets local profiles, port and DB connection properties to the
values required.
Instructions
If this is a HMPPS project then the project will be created as part of bootstrapping - see https://github.com/ministryofjustice/hmpps-project-bootstrap.
$ ./run-full.sh
+Or, to run with default properties set in the docker-compose file
$ docker-compose pull && docker-compose up
Or, to use default port and properties