Technologies used:
- Java 8
- Maven 3.6.0
- Spring Boot 1.5.4
- Postgres 10
- Flyway Db Migration Plugin
- Lombok
- Map Struct
- create 'cabacademy' db in postgres under 'cabuser'
- in
application-<ENV>.properties
file check db.url, db.user, db.pass etc settings - in project root run
mvn -Dflyway.configFiles=src/main/resources/application-<YOUR_ENV>.properties flyway:migrate
- From project root run
mvn clean install -P YOUR_ENV_NAME
from cmd
YOUR_ENV_NAME - is target environment name: dev, stage, prod.
- Move to ./target dir and run
java -jar elearning-<verion>.jar
from cmd
OR
*2. Run CabAcademieApplication.java from IDE