Skip to content

felipejsm/rarefish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiple Datasources

One project, two distinct databases
That's the scenario
You can check out the more detailed explanation on my blog and other channels

Before we start

You'll need

  • Docker
  • Java 17
  • Access to a terminal, at minimum

Spin Up a container

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

How to build?

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

Endpoints

http://localhost:8080/shipping

[
    {
      "id": 1,
      "name": "Naersk"
    }
]

http://localhost:8080/fish

[
    {
      "id": 1,
      "name": "peppermint angelfish"
    }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages