A Giter8 template for EPAM Scala Competency Center ZIO+Doobie+Http4s web application!
First of all, you'll need SBT. Follow its installation instructions and make sure sbt console
opens Scala REPL.
Next, you'll need to run sbt new EpamLifeSciencesTeam/scc_mentoring_be_zio.g8
and answer its questions about organization name (package name) and project name.
This scaffolded project will contain:
- ZIO
- doobie
- http4s
- circe
- pureconfig
- various QoL things like kind-projector or better-monadic-for
To run the generated project, you'll want to edit the src/main/resources/application.conf
file and provide your own connection options to PostgreSQL database.
Execute sbt run
to start Blaze server on the default 8083 port — or edit application.conf
and provide your desired port number instead.
Thanks to Maxim Schuwalow for his implementation of ZIO Todo Backend, which inspired this template.
Written in 2021 by Yuriy Bogomolov <[email protected]>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this template to the public domain worldwide. This template is distributed without any warranty. See http://creativecommons.org/publicdomain/zero/1.0/.