This is an example project that demonstrates how to use the Cloner library in a Spring application.
It contains a small application where you can randomly generate data and move it manually through a downloaded ZIP file:

Although this example downloads and reuploads a ZIP file, it is recommended that two environments talk directly between each other to prevent data leaks.
Start two databases with docker-compose:
cd example/src/main/resources docker compose up -d
This will host database1 on port 5432 and database2 on port 5434.
Start Example 1 with the built-in IntelliJ IDEA run configuration "Example 1" or the following command:
./gradlew example:bootRun --args='--spring.profiles.active=example1'
Start Example 2 with the built-in IntelliJ IDEA run configuration "Example 2" or the following command:
./gradlew example:bootRun --args='--spring.profiles.active=example2'
Access environments on:
- Example 1: http://localhost:8080/
- Example 2: http://localhost:8081/