Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1 KB

README.md

File metadata and controls

53 lines (34 loc) · 1 KB

Http4s Sample Application

This is a Scala project for the blog article about Scala API libraries. It provides a simple example on how to use https://http4s.org/ library.

Provided SBT commands

Clean project files

This will clean the compilation files (*.class) from the project:

sbt clean

Formatting all project files

The following command with format all the Scala files (*.scala) according to the scala format file provided in the project (.scalafmt.conf)

sbt fmt

Compiling the project files

The following command will compile the main project files:

sbt compile

Running the tests

This will execute all the tests in the project:

sbt test

Clean, format, compile, and run the tests in the same command

The sbt check command will execute the following steps:

  1. Clean all compilation files (*.class)
  2. Format all project files
  3. Compile all project files (including test classes)
  4. Execute all the tests
sbt check