Self-Study notes - Event sourcing in JavaScript

This is my self-study notes for the video Event sourcing in JavaScript by Fredrik Christenson. What is event sourcingWhen you have tracked all state-changes for a system, you can recreate that state. Instead of reading and writing changes to a DB, we create an event describing the change to state,…