GithubHelp home page GithubHelp logo

bullboard's Introduction

bullboard

Bullboard is used to explain Event Sourcing.

Product and domain

A simple investment porfolio checker.

Invsteing is a well-known domain, one that we can find a lot of expertise for online. It is also not too familiar: we don't want yet another Event Sourcing explained with a shopping-cart or order-shipping. Let's explore a new domain! Lets solve some real world constraints and practical issues too.

The Tutorial

  • Introduction
  • Hello World: Event Sourcing is simple
  • No framework: Tools, and structure
  • Storing events: All state is derived from these stored events
  • [sidestep] a CLI interface
  • [sidestep] TDD and BDD
  • Aggregates: modeling our domain
  • DDD: structuring the code
  • [sidestep] hexagonal
  • Projections
  • Workflows or Reactors
  • Event sourced, event driven and event state transfer https://martinfowler.com/articles/201701-event-driven.html
  • CQRS and eventual consistency
  • Snapshots: Performance

Features

Porfolio tracker for long term investors: stocks, crypto, real-estate.

  • Dashboard shows market value, returns montly, year and -total, purchasing value, dividend, amount of positions.

  • Diversification shows companies, industries, types and geography.

  • Positions shows market value, returns montly, year and -total, purchasing value, dividend of each individual position.

  • Dividend shows yield and total and yearly contribution per position.

  • Online data from APIs and exchanges can be fetched.

Tech

Uses Ruby, because of the expressiveness, accessability and Object Orientation. But Event Sourcing can be applied in any language, and in many paradigms, even functional programming. We just don't want to "muddy the water" by explaining unrelated toolchains, languages, paradigms.

No frameworks

We focus on paradigms and want to learn the basics, not how to use a framework. I tried to make it even language-independent, but that makes it too vague, so there is a depedency on Ruby and there are libraries (called gems, in Ruby) used.

Or, as Dave Farley puts it

Be Cautious of frameworks[...] By definition a framework imposes structure on our code. That tends to lock you in.[...] [...] to keep the core of your code free of any framework-dependencies.

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.