This project is my first project written at SPDU courses.
Project is created with:
- spring
- postgresql version: 14.2-1
- flyway version: 8.5.10
- minio version: 8.3.8
- Configure db connection
spring.datasource.username=
spring.datasource.password=
spring.datasource.url=jdbc:postgresql://${SPRING_DATASOURCE_HOST}:${SPRING_DATASOURCE_PORT}/${SPRING_DATASOURCE_SCHEMA}
- Run postgresql:
docker-compose up -d db
- Configure smtp properties for email sending
spring.mail.host=localhost
spring.mail.port=2525
- Set profiles that you need (jpa/jdbc):
spring.profiles.active=jdbc
- Start MinIO:
docker-compose up -d minio
- Start MailHog
docker-compose up -d mailHog
- Build and run project
./gradlew build
java -jar build/libs/hairdressing-salon-0.0.1-SHAPSHOT.jar
./gradlew build
docker-compose up