Skip to content

Small project to see how tapir can be integrated with akka http

License

Notifications You must be signed in to change notification settings

gastonschabas/todo-tapir-akka-http

Repository files navigation

ToDo Tapir Akka Http

Small project to see how tapir can be integrated with akka http

Requirements

  • jdk 11
  • scala 2.13.8
  • sbt 1.7.1

Directory structure

The project has three modules.

  • todo-endpoints: the meta description of the endpoints that the REST API have
  • todo-api-spec: generates de Open API spec
  • todo-server: the implementation of the server logic

Running locally

The server can be executed in Dev or Prod mode. The default port is 8080, but it can be overridden if the variable server-config.port is set.

Dev Mode

Execute the following command

sbt server/run

Prod Mode

First a build must be created running the following command

sbt server/stage

A binary file will be created in the directory todo-server/target/universal/stage/bin/. It can be executed as a regular bash script.

./todo-server/target/universal/stage/bin/server

Libraries

Demo

Monitoring

API Spec

About

Small project to see how tapir can be integrated with akka http

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published