Skip to content

ignacio-hivemind/tapir-demo

Repository files navigation

Tapir Sample Application

This is a Scala project for the blog article about Scala API libraries.

It shows a simple example of how to use the Tapir library to create a REST API in Scala.

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

REST API demo using Tapir framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages