GithubHelp home page GithubHelp logo

amir110 / toy_cqrs_event_sourcing_shooping_list Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leandrosansilva/toy_cqrs_event_sourcing_shooping_list

0.0 0.0 0.0 26 KB

Toy code, practising C++, CQRS and Event Sourcing

C++ 81.44% C 9.27% CMake 9.29%

toy_cqrs_event_sourcing_shooping_list's Introduction

Playing with CQRS and Event Sourcing

On Jan 14th the group Softwerkskammer Munich organized another awesome meetup, and the topic was CRQS (Command Query Responsability Segregation) and Event Sourcing, which were unknown to me.

After a brief explanation by Bradford Hovinen, we started our Kata, described here, but I confess I spent most of time setting up (unsuccessfuly) Eclipse to open the Graddle project, I decided to implement it as a "homework", but in C++ instead of Java, as I am not really a fan of Java and my C++ skills has became a bit rusty lately, so it was also a great opportunity to practise it again.

I didn't fucused on all aspects of the original description, so a lot of things are missing.

What does this code do so far?

  • Add items to the "singleton" (there is only one list per service) shopping list
  • Removes items
  • Infinite undo's (Yay!)
  • Unit tests for all operations

TODO

  • Notification system
  • Action Validation
  • Separation between Read and Write repository
  • "Strike" operation

Running it

Unfortunately there is no "main" executable yet. So far there is only unit test code. After cloning the repository, compile and run the tests with:

$ mkdir build
$ cd build
$ cmake ..
$ make && make tests

For a "pretty" tests output, run:

./tests/shopping_tests --reporter=spec

toy_cqrs_event_sourcing_shooping_list's People

Contributors

leandrosansilva 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.