An open API service indexing awesome lists of open source software.

https://github.com/loicdescotte/pureWebappSample

Minimal http4s + Doobie + ZIO + Circe Scala application to show how to build a purely functional web application in Scala.
https://github.com/loicdescotte/pureWebappSample

doobie functional http4s io pure scala

Last synced: about 7 hours ago
JSON representation

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

Awesome Lists containing this project

README

          

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