Giter Club home page Giter Club logo

haskell-api-prototype's Introduction

Haskell API prototype

What is this?

This is my research into the world of Haskell. Specicificly how to build modern applications (architectures) with Haskell, functional style. Topics will include, but not limited to:

  • restful API
  • domain driven design
  • CQRS / event sourcing
  • specification by example
  • and so on ...

This repository is (currently) merely a recording of my progress.

What's done? and what's next?

  • lightweight abstraction on top of WAI, as a micro Restful library
  • auto-generate API based op OpenAPI v3 spec
  • validate url + query parameters
  • validate json body, based on OpenAPI v3 spec
  • transform body to transfer objects (for both product and sum types)
  • comprehensive validation DSL (json body, url + query parameters)
  • strong typed error messages (human + machine interpretable), includes JSON path for Request Body error messages
  • JWT authorization / authentication, role based with JWK validation
  • "auto wire" transfer objects to commands
  • command handlers, sagas, process managers
  • aggregates, state, persistence
  • event, event handlers
  • ... more to come

Use or improve?

Sure, just shoot me a message.

haskell-api-prototype's People

Watchers

 avatar  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.