Web-app for the animal shelter "Dim Sirka".
- Java 11
- Docker
(If running from windows - replace / to \ )
- ./gradlew clean build -- build the project and run the tests
- terminal:
- java -jar build/libs/*.jar -- run the project
- docker:
- docker build -t animal-service . - build the docker image with name animal-service
- docker run --name animal-service-container -p 8070:8080 -d animal-service - run container with name animal-service-container based on the animal-service image
(make calls to port:
8070
)
- create and run animal_db container locally
docker run --name animal-db-container \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USERNAME=postgres \
-e POSTGRES_DB=animal_db \
-p 5433:5432 \
-d postgres
- docker-compose up -- run animal-service app and animal-db containers
- docker-compose down -- stop animal-service app and animal-db containers
https://ibb.co/QKjx9Cb - deprecated variant
https://drive.google.com/file/d/1apKYU2Hrkk7A0ydv1Cs5UM0Db9fDHrka/view?usp=sharing