Skip to content

oleg-grigorijan/good-choice

Repository files navigation

Good choice

Local deployment

Create database container

docker create `
  --name good-choice-db-postgres `
  -e POSTGRES_PASSWORD=postgres-pass `
  -e POSTGRES_INITDB_ARGS="--encoding=UTF8" `
  -p 5432:5432 `
  -v $(pwd)/local/initdb:/docker-entrypoint-initdb.d `
  bitnami/postgresql:13.2.0-debian-10-r45

Start database container

docker start good-choice-db-postgres

Run application with local profile

./gradlew bootRun --args="--spring.profiles.active=local"

Application will run on port 8080 by default. Swagger UI will be available at root path /.

Development

Build application

./gradlew build -x test

Test application

./gradlew test