Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Example project with Cloner

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: Image of the example UI

Although this example downloads and reuploads a ZIP file, it is recommended that two environments talk directly between each other to prevent data leaks.

Run the example

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: