An e-commerce application—a slice of the real-world
This section covers parts of a larger project that extends beyond the REPR pattern, where we leverage notions we learned throughout the book and add new learning bits, while keeping the scope very narrow to ensure the project does not become too big. This learning exercise brings our journey closer to the real world. On top of this, we alter this project in the next few chapters to explore different ways to organize our code and solutions.
Context: This project slightly differs from the one we used in the previous four chapters about products and stocks. We remove the inventory from the product, add a unit price, and create a barebone shopping basket as a foundation for an e-commerce application. The inventory management became so complex that we had to extract and handle it separately (not included here).
By using the REPR pattern, Minimal APIs, and what we learned with Vertical Slice Architecture, we determine that...