Skip to content

initialcapacity/basic-ktor-project

Repository files navigation

Basic Ktor project

Getting started

Install dependencies.

  1. Set up the database.

    psql postgres < databases/create_databases.sql
    flyway -user=initialdev -password=initialdev -url="jdbc:postgresql://localhost:5432/example_development" -locations=filesystem:databases/example migrate
    flyway -user=initialdev -password=initialdev -url="jdbc:postgresql://localhost:5432/example_test" -locations=filesystem:databases/example migrate
  2. Build the application.

    ./gradlew clean build
  3. Run the application locally.

    java -jar applications/report-app/build/libs/report-app.jar

Run with Docker

  1. Build with Docker.

     docker build -t report-app . --platform linux/amd64
  2. Run with Docker.

    docker run -p 8080:8080 --env-file .env.docker report-app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published