In this post, I have presented the project structured using Event Sourcing and CQRS patterns, written in TypeScript.

Why use CQRS/Event Sourcing?

The project I was building was a “Twitter-like” service where instead of sending tweets, users would rate websites using a chrome extension.

In terms of database, I wanted to support the following queries: