Skip to content

letsgg-platform/letsgg-platform-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Let'sGG Platform API Build and Test Pipeline

Prerequisites


Quick Local Startup

Running DB Migration Scripts

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

Used Environment Variables

  • 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

Running Tests

mvn clean verify

Notes: Runs tests w/ test profile


Contacts

  • email: romantupis at gmail dot com
  • telegram: @romm1