Install dependencies.
-
Set up the database.
psql postgres < databases/create_databases.sql flyway -user=initialdev -password=initialdev -url="jdbc:postgresql://localhost:5432/example_development" -locations=filesystem:databases/example migrate flyway -user=initialdev -password=initialdev -url="jdbc:postgresql://localhost:5432/example_test" -locations=filesystem:databases/example migrate
-
Build the application.
./gradlew clean build
-
Run the application locally.
java -jar applications/report-app/build/libs/report-app.jar
-
Build with Docker.
docker build -t report-app . --platform linux/amd64
-
Run with Docker.
docker run -p 8080:8080 --env-file .env.docker report-app