One project, two distinct databases
That's the scenario
You can check out the more detailed explanation on my blog and other channels
You'll need
- Docker
- Java 17
- Access to a terminal, at minimum
First things first, please, execute the docker-compose.yaml file
located at root dir:
docker compose up -d
Also, you'll need to guarantee the following port's availability:
- 8080 -> for the application
- 3309 -> Fish db
- 3307 -> Shipping db
After the cloning process, at the project's root dir
Execute the following on your terminal:
@ Windows
.\mvnw.cmd clean package
@ Linux-like
./mvnw clean package
[
{
"id": 1,
"name": "Naersk"
}
]
[
{
"id": 1,
"name": "peppermint angelfish"
}
]