To start app locally:
docker-compose up -d
To stop app locally:
docker-compose down --rmi all
Also it is necessary to fill DB by data from next directory ( You can connect to DB after starting the App ):
https://github.com/Major98113/outsource-task/blob/master/animals-service/migrations/dump.sql
App will work on 8080 port
There are two endpoints:
GET http://localhost:8080/animals
POST http://localhost:8080/animals
With body: {
"kind": string,
"positionX": number,
"positionY": number
}