In the next four chapters, we will write a project using the most common libraries and framework from the Scala ecosystem.
We are going to implement the cart management of an online shopping website, from the front-end to the database.
Starting from the database, we are going to implement a persistence layer. The responsibility of this layer is to persist in a relational database the content of the cart, for that purpose we are going to use a relational persistence framework named Slick.
Then, we are going to spend times to define an API to access the database, this API will use RESTfull web services architecture and JSON as message protocol. The API will be fully documented and testable from a generated website.
Finally, we are going to implement the user interface layer. With this interface, the user can add products into its cart, remove products...