This is the simple quickstart for writing a RESTful ZIO Web Service. You can download and run it very quickly. This will give you an idea of how to write similar apps.
This quickstart shows how to build a simple RESTful web service using ZIO. It uses
- ZIO HTTP for the HTTP server
- ZIO JSON for the JSON serialization
- ZIO Logging for integrate logging with slf4j
- ZIO Config for loading configuration data
We have a dedicated article about this quickstart at the ZIO documentation website called ZIO Quickstart: Building RESTful Web Service
First, open the console and clone the project using git
(or you can simply download the project) and then change the directory:
git clone git@github.com:zio/zio-quickstart-restful-webservice.git
cd zio-quickstart-restful-webservice
Once you are inside the project directory, run the application:
sbt run