GithubHelp home page GithubHelp logo

theosis / nodejs-eventstore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kenpratt/nodejs-eventstore

0.0 2.0 0.0 133 KB

Node.js driver for Event Store

Home Page: https://github.com/kenpratt/nodejs-EventStore

License: MIT License

nodejs-eventstore's Introduction

nodejs-EventStore

Event Store is "an awesome, rock-solid, super-fast persistence engine for event-sourced applications."

It has HTTP and TCP client interfaces -- this project implements the TCP interface in Node.js in an async fashion.

Project status

Very early stage. Only a subset of the TCP API is implemented. But you can create streams of events and read them back, so the most important functionality is in!

Usage

Installing:

npm install git://github.com/kenpratt/nodejs-EventStore.git

Connecting:

var EventStore = require("nodejs-EventStore");
var es = EventStore.connect(host, port);

Creating an event stream:

es.createStream(streamName, cb);

Creating an event (callback will contain event number for created event):

es.createEvent(streamName, eventType, data, cb);

Reading & subscribing to an event stream (callback will be called for each existing event in the stream, and for each event added in the future):

es.readAndSubscribeToStream(streamName, cb);

Dependencies

Development dependencies

nodejs-eventstore's People

Contributors

kenpratt avatar

Watchers

George Paley avatar James Cloos 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.