Giter Site home page Giter Site logo

jan0sch / pfhais Goto Github PK

View Code? Open in Web Editor NEW
56.0 10.0 16.0 7.67 MB

Source code of the book Pure functional HTTP APIs in Scala including a chapter about upgrading to Scala 3.

Home Page: https://leanpub.com/pfhais

License: Creative Commons Attribution Share Alike 4.0 International

Scala 100.00%
scala functional-programming cats-effect http4s fs2 monocle tapir optics scala3

pfhais's Introduction

Pure functional HTTP APIs in Scala

Build Status codecov

This repository contains the source code for the book "Pure functional HTTP APIs in Scala" which is available on Leanpub: https://leanpub.com/pfhais

While Leanpub is the recommended source the book is also available at:

An online course based upon the book was done by Educative: https://www.educative.io/courses/pure-functional-http-apis-scala

Structure

The folder manuscript contains the book source code and other resources like images. The service implementations are placed in the folders impure and pure. Within the folder tapir you can find the pure implementation which uses the tapir library for a typed API design.

Build Tooling

All project modules can be compiled, run and tested via sbt. Just open a terminal in the desired folder (e.g. pure) and start the sbt shell.

If you are using the IntelliJ IDEA development environment then you will need to install the Scala plugin for it. Afterwards you should be able to create IDEA projects by using the "Import Project" feature and point it to the desired folder (e.g. tapir).

Copyleft Notice

This book uses the Creative Commons Attribution ShareAlike 4.0 International (CC BY-SA 4.0) license. The code snippets in this book are licensed under CC0 which means you can use them without restriction. Excerpts from libraries maintain their license.

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.