-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exercise with MongoDB event store single stream projection
- Loading branch information
1 parent
a813241
commit 9f322e7
Showing
5 changed files
with
1,177 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...ntroduction_to_event_sourcing/src/14_projections_single_stream_emmett/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Exercise 14 - Projections | ||
|
||
With the selected Emmett's storage, implement the following projections: | ||
|
||
1. Detailed view of the shopping cart: | ||
- total amount of products in the basket, | ||
- total number of products | ||
- list of products (e.g. if someone added the same product twice, then we should have one element with the sum). | ||
2. View with short information about pending shopping carts. It's intended to be used as list view for administration: | ||
- total amount of products in the basket, | ||
- total number of products | ||
- confirmed and canceled shopping carts should not be visible. | ||
|
||
Define evolve function in projection definition at the bottom of [projections.exercise.test.ts](./mongodb/projections.exercise.test.ts). | ||
|
||
Read more about projections in my article: | ||
|
||
- [Guide to Projections and Read Models in Event-Driven Architecture](https://event-driven.io/en/projections_and_read_models_in_event_driven_architecture/?utm_source=event_sourcing_nodejs&utm_campaign=workshop) |
Oops, something went wrong.