An application for creating, editing and deleting articles that uses MongoDB as a storage.
Execute this command to run the sample:
./gradlew runThen, you can open http://localhost:8080/ in a browser to create, edit, and delete articles.
By default, the application connects to a MongoDB instance running on localhost:27017. You can start one using the provided docker-compose.yaml:
docker-compose upTests use Testcontainers to automatically start a MongoDB container, so you don't need to manually set up any infrastructure:
./gradlew testThe MongoDB container will be automatically started before tests run and stopped afterwards.