Skip to content

Sample repository with a simple example of an API build with http4s library

Notifications You must be signed in to change notification settings

ignacio-hivemind/http4s-demo

Repository files navigation

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

About

Sample repository with a simple example of an API build with http4s library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages