The standard http4s quickstart, but using ZIO via cats-effect interop
Find a file
Andreas Pauley 95d8483fa0
Add a README
2019-05-27 15:44:26 +02:00
project Initial commit: sbt -sbt-version 1.2.8 new http4s/http4s.g8 -b 0.20 2019-05-20 10:56:21 +02:00
src Change the http4s Quickstart example from cats-effect IO to ZIO 2019-05-27 15:37:30 +02:00
.gitignore Fix capitalization 2019-05-20 11:02:16 +02:00
build.sbt Change the http4s Quickstart example from cats-effect IO to ZIO 2019-05-27 15:37:30 +02:00
README.md Add a README 2019-05-27 15:44:26 +02:00

Minimal http4s with ZIO example

Here I tried to do as little as possible to get http4s running using ZIO instead of cats-effect IO

Step 1

Follow the standard http4s instructions and get the quickstart app running:

sbt -sbt-version 1.2.8 new http4s/http4s.g8 -b 0.20

You can see the result in this commit:

github.com/apauley/http4s-zio-quickstart@f0846efcbe

Step 2

Instantiate the Quickstart Server with a ZIO Task instead of the default cats-effect IO:

github.com/apauley/http4s-zio-quickstart@e678d3b829