Don't fork me!

Introduction

This documentation contains some help to examples from eventstore.org-examples repository. eventstore.org playground projects

1. EventStore Java Client

bootstrap (requires running docker eventstore container)
./gradlew bootRun

http :8080/message message=hi
# output
{
    "logPosition": {
        "commitPosition": 54118,
        "preparePosition": 54118
    },
    "nextExpectedVersion": 0
}

http :8080/message message=hi\ again!
# output
{
    "logPosition": {
        "commitPosition": 70915,
        "preparePosition": 70915
    },
    "nextExpectedVersion": 1
}

http :8080/messages/0
# output
{
    "createdAt": "2018-02-17T06:39:25.548Z",
    "data": "{message=hi}",
    "eventNumber": "0",
    "stream": "messages",
    "type": "message"
}

http :8080/messages/1
# output
{
    "createdAt": "2018-02-17T06:40:01.962Z",
    "data": "{message=hi again!}",
    "eventNumber": "1",
    "stream": "messages",
    "type": "message"
}

links:

3. Enjoy! :)