An app for storing cocktail recipes and ingredients
mvn clean package will result in a runnable jar.
- Spin up a local postgres database (a docker compose file is in
docker/dev-env/compose.yml). Before the compose file can be started, copy the.env.examplefile to.envand fill in the client ID value. - Copy
application-dev.yml.exampletoapplication-dev.ymland adjust values to match postgres configuration - Run application with
./mvnw spring-boot:run -Dspring-boot.run.profiles=dev
By default, the tests require a working Docker installation for use with Testcontainers.
This is used for creating a clean postgres database for every test class. Tests can also be
run without docker in a shared database. For this, copy no-docker-tests.properties.example
to no-docker-tests.properties and adjust the datasource values so that they point to a valid
postgres database. The tests can then be run with mvn -P no-docker test.