- Start DB with
docker-compose -f src/main/resources/docker-compose.yml up
(Each next step requires previous to be successful)
- DB migration - Flyway migration runs automatically as part of
build
stage. It can be manually run by
./gradlew flywayMigrate
- JooqCodeGeneration - Runs as part of
build
after flywayMigration. It can be manually run by
./gradlew generateFancyFilterAppJooqSchemaSource
- Running the tests
./gradlew build
- Running the project - You need to have Jdk installed and
$JAVA_HOME
defined to be able to run the project.
./gradlew bootRun
- Verify that the app is running
curl localhost:8080/actuator/health
- After starting DB - Clean, migrate, generate-tables, build, test and start
./gradlew clean flywM generateFancyFilterAppJooqSchemaSource build bootR