...
Checkout the cps_poc branch
git checkout cps_poc
Setup MariaDB
...
Run a Postgres 13 container instance and create 'cpsdb' database.
CREATE USER cps WITH PASSWORD 'cps';
CREATE DATABASE cpsdb OWNER cps;
Setup schema in DB
For now we are manually creating the schema.
The spring-boot application auto creates the schema on startup via a script run by JPA.
Set environment variables for relevant connection details which can be found in application.yamlThis section will be updated soon as we are in the process of creating a script.
Building the project
We are working from the cps folder for the POC.
When building the project run :
mvn clean install from features\cps
from the root cps folder.
Running the project
...
From the features\cps\ folder run the following command;
java -DDB_HOST=localhost -DDB_USERNAME=cps -DDB_PASSWORD=cps -jar cps-rest/target/cps-rest-0.0.1-SNAPSHOT.jar
OR
From the features\cps\cps-rest folder run the following command;
mvn spring-boot:run