Skip to content

romanowski/adopt-tapir-scala-cli-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick start

If you don't have Scala CLI installed yet, please follow these installation instructions. You can use the following commands to compile, test and run the project:

scala-cli compile --test . # build the project ('--test' means that tests will be also compiled)
scala-cli test . # run the tests
scala-cli run . # run the application (Main)
scala-cli fmt --check . # run scalaformat check on all scala files and print summary, removing '--check' fixes badly formatted files

To open project in the IDE (Metals / IntelliJ) run any of the compile or test command above and open the project. IDE should detect a BSP project and import it.

Alternatively, you can use Scala CLI via a docker image:

docker run -ti --rm -v $(pwd):/app virtuslab/scala-cli compile --test /app # build the project ('--test' means that tests will be also compiled)
docker run -ti --rm -v $(pwd):/app virtuslab/scala-cli test /app # run the tests
docker run -ti --rm -p '8080:8080' -v $(pwd):/app virtuslab/scala-cli run /app # run the application (Main)

For more details check the Scala CLI commands page.

Links:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages