Putting everything together
This is my favorite part. I have been providing little snippets here and there and, hopefully, now you can see the big picture of how everything is linked from a DDD point of view. I have included the snippets in the source code directory.
Solution Explorer view
What we’ve done in this project is a collection of snippets. Let’s have a look at them:
Figure 7.5 – VS solution files from a DDD perspective
Let’s have a recap of every item:
- Contracts: This is what the outside world sees. These contracts represent the shape of the data that will be exchanged between the backend and the client. The client should know the data elements of the contract, so it knows what to expect from your headless blog.
- Entities: They are the domain objects with identities.
- Value Objects: They are the domain objects that don’t require an identity.
- Domain Objects: This is the group of entities and...