level-eventstore
eventstore using leveldb
server
npm start
Docker
Docker images hosted at https://hub.docker.com/r/jameskyburz/level-eventstore/
docker pull jameskyburz/level-eventstore:version
Running in docker
ᐅ docker pull jameskyburz/level-eventstore:versionᐅ docker run --rm --name level-eventstore -p 5000:5000 jameskyburz/level-eventstore:version
example
const wsUrl = 'ws://guest:guest@localhost:5000'const httpUrl = 'http://guest:guest@localhost:5000'const client = wsUrl httpUrl await client await client const close = client async { console } async { console } insert email: 'foo@bar' id: '1def7ce5-9da4-40cc-8594-c739fad36a2b' verify id: '38390783-cd60-4190-8b94-a3d4ac24d653'
event handlers can be generators, async functions, or vanilla functions in this case they need an extra callback
argument.