This project uses Quarkus, the Supersonic Subatomic Java Framework.
To run the app in dev environment, first start the PG container with the command:
docker-compose up -d
Then run the following quarkus cli:
quarkus dev
NOTE: Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
Tests on this application have been developed with JUnit, Rest Assured and Mockito.
To run the tests we just use this command:
mvn test
To run a single Test Suite just use the following command replacing the placeholder
TEST_CLASS with the Test Suite you want to run:
mvn -Dtest=TEST_CLASS test
You can create a native executable using:
./mvnw package -Pnative
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
./mvnw package -Pnative -Dquarkus.native.container-build=true
You can then execute your native executable with: ./target/fit-system-1.0.0-SNAPSHOT-runner
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.html.
Easily start your RESTful Web Services