This app simulates two firms interoperating. It is basically the backend, but with thymeleaf to be able to see the data flow.
- Java >= 19 (OpenJDK JVM is tested by our CI on Travis)
- MySql 8
- Spring Boot
You can run the required version of the database server in a container, instead of having to install it, like this:
docker run --name mysql-8 -p 3306:3306 -e MYSQL_ROOT_PASSWORD_FILE=mysql -d mysql-8
and stop and destroy it like this:
docker rm -f mysql-8
Beware that this database container database keeps its state inside the container and not on the host filesystem. It is lost when you destroy (rm) this container. This is typically fine for development. See Caveats: Where to Store Data on the database container documentation re. how to make it persistent instead of ephemeral.
Tomcat v9 is only required if you wish to deploy a WAR to a separate external servlet container. Note that you do not require to install Tomcat to develop it, or to run it in production if you use the self-contained JAR, which transparently embeds a servlet container using Spring Boot.
Run the following commands:
./mvnw clean install
2./mvnw spring-boot:run
-
Clone the repository or download and extract the archive file to your local directory.
-
Run
./mvnw clean package
to build a modern cloud native fully self contained JAR file which will be created atgpj-notific-service/target/
directory. 3Start the jar and pass the directory where you have downloaded the JDBC driver as loader.path, for example:java -Dloader.path=. -jar target/gpj-notific-service-2.7.12.jar
(does not require external Tomcat)... java -jar gpj-notific-service-2.7.12.jar
- Clone the repository or download and extract the archive file to your local directory.
- Run
./gradlew :fineract-war:clean :fineract-war:war
to build a traditional WAR file which will be created atfineract-war/build/libs
directory. - Deploy this WAR to your Tomcat v9 Servlet Container.
We recommend using the JAR instead of the WAR file deployment, because it's much easier.
Note that with the 1.4 release the tenants database pool configuration changed from Tomcat DBCP in XML to an embedded Hikari, configured by environment variables, see above.
./gradlew clean test
As Prerequisites, you must have docker
installed on your machine;
docker build -t auth-service .
docker run -p 8081:8081 notific-service
The project uses Jacoco to measure unit tests code coverage, to generate a report run the following command:
`./mvnw clean test jacoco:report`
Generated reports can be found in target/site/jacoco directory.
Emilson Vontade Dinis Lote