Giter Club home page Giter Club logo

zio-examples's Introduction

ZIO Examples

ZIO with http4s and doobie

in package: http4s_doobie

Checkout this blog post: link. It explains in details how to use ZIO with http4s and doobie.

Find the implementation in this package: com.zio.examples.http4s_doobie

Inspired by: Maxim Schuwalow in this project: zio-todo-backend

Credit: @jdegoes and @mschuwalow

Quickstart

in package: quickstart

There are 2 examples:

  1. Eat chocolate with ZIO Example: repeat and retry actions using ZIO Schedules.

  1. ZIOLayers Example: a program that interacts with a service called Show to display a given message.

Checkout this video for a detailed explanation Link

Prepare pizza and open the fridge using ZIO

in package: ilforno

This example is shows how to use Ref, Queue, ZManaged, and ZLayer.

For more details and explanation, checkout these videos:

And this blog post: Opening the fridge with ZIO

4714cd12-a2df-401e-9448-a95fdf46790b-46343c36-1be7-4dd2-ae8c-822fca98cdb1-v1

zio-examples's People

Contributors

declspec-cdecl avatar flowi avatar wi101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zio-examples's Issues

Example from blog missing.

In your blog post ZIO with http4s and doobie

There was a very good example to understand the module pattern.

Checkout the code with this approach here. In this section I wanted to go with a simple approach, there is a tip section bellow explains a better way to implement Configuration dependency.

The link at "here is broken."

I wonder if you still have that code somewhere. I did saw it, and the code really helped me understand the subject. I'm revisiting right now, and was hopping to check out that code again.

error decoding users when sending POST to endpoint

Hi!

I get this error when posting to the users endpoint.
Do you have an idea what's wrong?

I didn't run it with a todo-app frontend and just tried to post manually using cURL or httpie.

$ curl -XPOST localhost:8080/users -d '{"id": 1, "name": "Florian"}'
$ http POST localhost:8080/users id=1 name=Florian

stacktrace.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.