pureWebappSample icon indicating copy to clipboard operation
pureWebappSample copied to clipboard

Minimal http4s + Doobie + ZIO + Circe Scala application to show how to build a purely functional web application in Scala.

Simple ZIO + HTTP4s + Doobie + Circe POC to show how to build a purely functional web application in Scala, using functional effects with ZIO.

This is just an example to show how to retrieve and update a stock value in a database, validate this value ( > 0) and return a result as json.

How to run the sample :

  • sbt run
  • open http://localhost:8080/stock/1