quincy / scout-events-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scout-events-app

Dev Setup

SDKs

This project uses SDKMAN! to manage things like the Gradle version. See the .sdkmanrc file to see which versions of the tools it will install.

To get started with SDKMAN!, visit https://sdkman.io/install and follow the installation instructions.

You can install by running this command on Unix-like operating systems:

curl -s "https://get.sdkman.io" | bash

You can install the tools listed in the .sdkmanrc file with:

sdk env install

You can activate these tools by with:

sdk env

Or you can set the following configuration in your ~/.sdkman/etc/config file:

sdkman_auto_env=true

Docker

If you want to run the app locally in a docker container, you'll need docker. Follow the instructions at docker.com.

Build

If you're using Intellij, there are Run Configurations available in the repository:

  • pre-commit build
    • run before committing
    • ./gradlew clean spotlessApply detekt build check
  • build docker image
    • run to build the docker file locally
    • docker build -t scout-events-app .

Running the app locally

You'll need to first create the docker-compose environment, which will start a local version of the database:

docker-compose up

Use the run app Run Configuration in IntelliJ.

If you want to run the docker container you built above:

docker run --cpus=1 --memory=200m -p 8080:8080 scout-events-app

Running liquibase

Check the status

~/.sdkman/candidates/liquibase/current/bin/liquibase status --username=liquibase --url=jdbc:postgresql://localhost:26257/scouting

Check what SQL will be run

~/.sdkman/candidates/liquibase/current/bin/liquibase update-sql --username=liquibase --url=jdbc:postgresql://localhost:26257/scouting

Run the liquibase migration

~/.sdkman/candidates/liquibase/current/bin/liquibase update --username=liquibase --url=jdbc:postgresql://localhost:26257/scouting

About

License:MIT License


Languages

Language:Kotlin 93.9%Language:Dockerfile 5.9%Language:HTML 0.2%