This is the Java 17 SpringBoot implementation of the Agreement Service API Open API specification.
It is deployed via AWS & Terraform to the AWS environments.
The Agreements Service scripts located in the following two repos CCS Scale DB Scripts and CCS Scale DB Scripts Data should have been provisioned against a database for the target environment(s), to ensure the necessary basic level of data is present for the service to use when running.
In order to run the application locally, the database must be setup on the local machine. In order to do this:
-
PGAdmin must be installed on the desired machine.
-
A database named "agreements" must be setup within PGAdmin.
-
The scripts referenced in the Prerequisites section above must be run against that local database, to populate it with initial data.
-
Environment variables must be amended in your run configuration to reflect your database access credentials.
Following these steps the application should successfully run. Postman scripts to run against and test the service can be found in the private Postman API scripts repository.
The service will automatically trigger builds when commits are detected to the following branches:
develop
branch -> DEV(TST) environmentstaging
branch -> PRE-PRODUCTION environmentmain
branch -> PRODUCTION environment
Once builds have completed, manual approval for the deployment is required. This can be made by an authorised user within the relevant AWS account.
When deploying the service an additional step is currently required, whereby the ECR Image Variable in ccs-scale-infra-services-shared needs to be updated to reflect the build version being deployed. This should currently be done manually.