The standard http4s quickstart, but using ZIO via cats-effect interop
- Scala 100%
| project | ||
| src | ||
| .gitignore | ||
| build.sbt | ||
| README.md | ||
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: