When I learn ZIO by myself, I was looking for example apps, but can't find many.
This is a simple ZIO 2 scala 3 rest app.
zio 2
zio-json
for json ser/dezio-http
for http serverzio-logging
for logging
Please go to releases page to go through incremental implementation of this app. Each individual release is a working app.
This server use in ram hashmap as DB, no docker needed.
Server will start on localhost:8080
, go to health endpoint in your browser and you should see all good
.
sbt run
sbt test
You can find the http request examples in the test.http file.
- Add tests
- add db connections
- add instruction how to run this app locally
- add curl examples
- add logging
- add zio metrics
- add dockerfile