Ensure Docker is up and running on your machine, by following these steps:
-
Open your terminal or command prompt.
-
Run the following command, and check that you get the server engine version: (Also you can use just the command
docker version
if you have any issue with the --format parameter)
$ docker version --format '{{.Server.Version}}'
26.1.1
In case you don't have Docker installed in your system or any other docker engine, please do it to be able to run the local environment.
N.B. If you don't want to use containers, with some modifications on the project, you could use a local Postgresql database.
In this workshop we are using Testcontainers, it's very recommended to install test containers desktop because it brings with some useful features, like select a container runtime or freeze containers shutdown...
FYI, You need to create a free account to use it.
More info here: Test containers desktop docs
Clone the following project from GitHub to your computer:
https://github.com/Spring-io-2024-modulith-workshop/conference-kata-implementation-modulith/tree/workshop
With Maven:
./mvnw clean compile
or
./mvnw dependency:go-offline
This might be helpful if the internet connection at the workshop venue is somewhat slow.
docker pull postgres:16-alpine
Be sure that you have Java 21 installed in your system. We personally use SDKMAN to manage JVM installations for macOS.