- Kotlin
- Spring boot
- Gradle
(Use mise? mise i
to install the required prerequisites)
- Java 21
You will also need docker installed for running the application locally, and running tests with testcontainers.
To build locally and run the integration tests you can simply run
./gradlew clean build
This will run tests as well.
Ensure Testcontainers has access to Docker by adding this to your configuration
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
export DOCKER_HOST="unix://${HOME}/.colima/docker.sock"
export TESTCONTAINERS_HOST_OVERRIDE=$(colima ls -j | jq -r '.address')
external services are mocked so we are not calling pdl, btsys etc-
docker compose up -d
or
podman-compose up -d
Run the application normally from IntelliJ, remember to set the profile local
in your run configuration.
Or run the application using Gradle:
./gradlew bootRun --args='--spring.profiles.active=local'
Kafka will run in docker. To query the local Kafka instance you can use the following command to check for content in the topic::
kcat -b localhost:9092 -t tsm.sykmeldinger-input -C -o beginning
This project is maintained by navikt/tsm
Questions and/or feature requests? Please create an issue
If you work in @navikt you can reach us at the Slack channel #team-sykmelding