Giter VIP home page Giter VIP logo

sbtb2019-quill-doobie's Introduction

Quill + Doobie = Better Together Examples

Examples used in the Scale By the Bay talk by Alexander Ioffe.

This repo includes the various examples used in the presentation as well as the simple rest service presented at the end using, quill, doobie, http4s, fs2, and circe. It is based on todo-http4s-doobie by @jaspervz please have a look over there for more details on how the library is put together.

End points

All of the endpoints are GETs which result in a single SELECT query. Since these endpoints are for demonstration purposes some use Doobie and Quill and some only use Quill.

Examples:

  • simple/quill/peopleNamed/Joe - People Named Joe
  • /quill/peopleWhoAre/Partygoer/named/Joe - All Partygoer Humans named Joe
  • /quill/trollsWhoAre/Partygoer/in/NY - All Partygoer Trolls in New York
  • /quill/robotsWhoAre/Partygoer/aged/400 - All Partygoer Robots aged 300 or more (no Killer robots allowed)
  • /quill/robotsWhoAre/Partygoer/aged/400?killer - All Partygoer Robots aged 300 or more (even Killer robots allowed)
Url Description
/simple/doobie/peopleNamed/{firstName} People Named (only using Doobie).
/simple/quill/peopleNamed/{firstName} People Named a particular role (using Quill and Doobie).
/doobie/peopleWhoAre/{role}/named/{firstName} All people with a particular role (only using Doobie).
/quill/peopleWhoAre/{role}/named/{firstName} All people with a particular role (using Quill and Doobie).
/doobie/trollsWhoAre/{role}/in/{state} All trolls with a particular role living in a particular state (only using Doobie)
/quill/trollsWhoAre/{role}/in/{state} All trolls with a particular role living in a particular state (using Quill and Doobie)
/doobie/robotsWhoAre/{role}/aged/{years}?killer All trolls with a particular role living in a particular state who are optionally allowed to assassinate (only using Doobie)
/quill/robotsWhoAre/{role}/aged/{years}?killer All trolls with a particular role living in a particular state who are optionally allowed to assassinate (using Quill and Doobie)

sbtb2019-quill-doobie's People

Contributors

deusaquilus avatar

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.