Skip to content

Zorin95670/octo-spy

Folders and files

NameName
Last commit message
Last commit date
Aug 2, 2021
Nov 6, 2021
Sep 28, 2020
Sep 23, 2021
Jul 6, 2021
Nov 6, 2021
Jul 6, 2021
Aug 1, 2021
Sep 6, 2021
Aug 1, 2021
Aug 6, 2021
Nov 6, 2021
Aug 1, 2021

Repository files navigation

octo-spy

API to get and save all project's version.

Database management

To make database working:

  • download postgres: 13.3 docker image.
  • Run docker postgres with this command:

docker run -p 5432:5432 --rm -ti --name postgres -e POSTGRES_PASSWORD=password -e POSTGRES_USER=octo -e POSTGRES_DB=octo_db -e POSTGRES_HOST_AUTH_METHOD=trust postgres:13.3

  • Execute this maven command to initialize database

mvn compile && mvn flyway:migrate -Dflyway.url=jdbc:postgresql://localhost:5432/octo_db -Dflyway.user=octo -Dflyway.password=password

  • Execute this command to add test data

psql -h localhost -t octo_db -U octo -f src/main/resources/db/testdata/R__test_data.sql