Skip to content

dabliuw22/dotty-http

Repository files navigation

dotty-http

Requirements

  • JDK >= 19
  • Sbt
  • Dotty
  • Docker Compose

Local Setup

Run docker-compose.yml

$ docker-compose up -d

Run Migration

$ sbt api/flywayMigrate

Run Test

$ sbt test

Integration Test

$ sbt it:test

Apply Formatter

$ sbt scalafmtAll

Run Api

With Sbt

Compile and Run

$ sbt api/compile api/run

With Sbt Exec

Exec and Run

$ sbt api/exec api/run

With Sbt Assembly

Add environment variables on your system

Reference file:.env

Assembly

$ sbt api/assembly

Run .jar

$ java -jar main/target/scala-3.1.0/api.jar