- JDK >= 1.8
- Maven >= 3.6.3
- PostgreSQL >= 13
You may want to run DB migration scripts to define/create DB schema of yours (required only once).
mvn liquibase:update -Ddatasource-jdbc-url=<env> -Ddatasource-username=<env> -Ddatasource-password=<env> -Dliquibase-context=<env>
After you've finished running DB migration scripts, you can proceed with starting the application.
To bootstrap with the default profile/env variables:
mvn spring-boot:run
Alternatively, you may want to bootstrap with specific profile:
- dev (default)
- production
- test
To run app w/ any profile besides default one, just add -P<profile>
flag; e.g.:
mvn spring-boot:run -Pproduction
- datasource-jdbc-url (defaults to
jdbc:postgresql://localhost:5433/letsgg
) - datasource-host (defaults to
localhost
) - datasource-username (defaults to
postgres
) - datasource-password
- liquibase-context (defaults to
dev
) - oauth-github-client-id
- oauth-github-client-secret
- oauth-google-client-id
- oauth-google-client-secret
- jwt-secret
- cors-allowed-origins
- test_email
- test_email_pwd
mvn clean verify
Notes: Runs tests w/ test profile
- email: romantupis at gmail dot com
- telegram: @romm1