Tribunals case api is a spring boot based application to create new appeals for the SSCS Appellants
For versions and complete list of dependencies see build.gradle
To build the project execute the following command:
./gradlew build
Run the application by executing:
./gradlew bootRun
Once the application running locally, please make sure
Create the image of the application by executing the following command:
./gradlew installDist
Create docker image:
docker-compose build
Run the distribution by executing the following command:
docker-compose up
This will start the API container exposing the application's port
In order to test if the application is up, you can call its health endpoint:
curl http://localhost:8080/health
You should get a response similar to this:
{"status":"UP"}
To run all unit tests execute the following command:
./gradlew test
To run all mutation tests execute the following command:
/gradlew pitest
docker pull hmcts/tribunals-case-api:latest