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.
- Host: GitHub
- URL: https://github.com/loicdescotte/pureWebappSample
- Owner: loicdescotte
- Created: 2017-12-30T14:24:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T08:58:30.000Z (over 5 years ago)
- Last Synced: 2026-01-24T06:43:53.458Z (3 days ago)
- Topics: doobie, functional, http4s, io, pure, scala
- Language: Scala
- Homepage:
- Size: 50.8 KB
- Stars: 123
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- awesome - loicdescotte/pureWebappSample - Minimal http4s + Doobie + ZIO + Circe Scala application to show how to build a purely functional web application in Scala. (<a name="Scala"></a>Scala)
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