Skip to content

dnikolovv/haskell-servant-event-sourcing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell Servant with Event-Sourcing Build Status

A very simple but interesing application made using Haskell Servant and Eventful.

It stores a stream of events in-memory that represent an integer counter.

It supports 3 types of events: increment (POST counter/increment), decrement (POST counter/decrement) and reset (POST counter/reset).

Example:

POST counter/increment 123

GET counter/latest
{
    "count": 123
}

GET counter/events
[
    [
        {
            "tag": "CounterIncremented",
            "contents": 123
        },
        {
            "count": 123
        }
    ]
]

About

A simple Haskell web application with event-sourcing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published