Here you should practise how to structure your application.
-
Clone this repository
-
Define, which class goes into which layer (view, domain, infrastructure). Create a new folder for each layer and move the classes into their folders.
-
Add the missing require statements.
-
All method bodies in
shop_manager.rb
are currently empty. Implement all method bodies. You only need the@shopping_card
and@database
variables. Also you need to use theArticle
class. -
Complete the
menu.rb
class so that in the end you can order articles, show all available articles, show shopping card and so on. -
Add a new option "Add milk to shopping cart" (because I always forget that) which will add milk to the database and therefore display it when I list all my items.
-
When a user tries to add an article to their shopping card which does not exist, the user should see an error that this is not possible.
Help:
- [Lightning sessions Software architecture] (https://github.com/CodePadawans/lightning-sessions/blob/master/software_architecture.md)