Skip to content

The standard http4s quickstart, but using ZIO via cats-effect interop

Notifications You must be signed in to change notification settings

apauley/http4s-zio-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

https://github.com/apauley/http4s-zio-quickstart/commit/f0846efcbe8c212748586de727047f00ed37d042

Step 2

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

https://github.com/apauley/http4s-zio-quickstart/commit/e678d3b829230cde9195c4447683d791b7c2373b

About

The standard http4s quickstart, but using ZIO via cats-effect interop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages