Giter VIP home page Giter VIP logo

eventstore-examples's Introduction

EventStore Projection Examples

Some fun stuff with EventStore JavaScript projections.

Projections and Tests

If you are only interssted in the Javascript Projection and their tests you can have a look here:

https://github.com/tim-cools/EventStore-Examples/tree/master/src/Soloco.EventStore.MeasurementProjections/Projections/Sources

Run EventStore

To run the example, ensure to run the EventStore as administraor and with the --run-projections=all flag set. The following statement from command line runs the EventStore with projections enabled and an in-memory database.

lib\EventStore\EventStore.SingleNode.exe --run-projections=all --mem-db

NOTE: The examples are based on the latest version from the main branch at the time of writing (v3.0.0rc1). Because I noticed that it is rather important to use the Client API against the same version of the EventStore, I included the binaries in the github repository. This allows you to check out the examples and run them, without worrying about the compatible versions or building the EventStore yourself.

For instructions on how to build the EventStrore see the official github page.

Run an Example

The projections in these examples are managed by using the ClientAPI from C#. Each example will automatically:

  • Create the necessary projection(s)
  • Simulate the necessary events
  • And show you the output of the projections

Blog Posts Series

These examples are explained in a series of Blog post: http://www.soloco.be/eventstore-projections-by-example-series/

Have Fun!

eventstore-examples's People

Contributors

tim-cools avatar mlouage avatar

Watchers

Edgar Ursua Jr. 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.