Deals, discounts and vouchers
- See deals
- Create deals
- Vote on deals
- Share deals
- Spring boot
- Hibernate
- Postgres
- Flyway
- Docker
This service and its integration tests require a postgres database running on port 5432. The below docker command will spin up the service (8080) and the database (5432).
docker build --tag discountsm .
docker-compose up
The postgres docker container is mapped to port 5432, so you can stop the service in docker, clear the migrations and run it manually using:
mvn -Dflyway.user=postgres -Dflyway.password=discountsm -Dflyway.url=jdbc:postgresql://localhost/discountsm flyway:clean
mvn spring-boot:run (or directly in your IDE)