{"id":23333900,"url":"https://github.com/schultyy/layer-exercise","last_synced_at":"2025-04-07T12:13:38.731Z","repository":{"id":19677580,"uuid":"22931436","full_name":"schultyy/layer-exercise","owner":"schultyy","description":"Exercise about software layers for @codepadawans","archived":false,"fork":false,"pushed_at":"2014-08-14T07:57:09.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T23:35:29.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schultyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-13T21:11:10.000Z","updated_at":"2014-08-14T07:27:27.000Z","dependencies_parsed_at":"2022-07-10T08:17:34.078Z","dependency_job_id":null,"html_url":"https://github.com/schultyy/layer-exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Flayer-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Flayer-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Flayer-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Flayer-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schultyy","download_url":"https://codeload.github.com/schultyy/layer-exercise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648976,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T00:32:50.339Z","updated_at":"2025-04-07T12:13:38.711Z","avatar_url":"https://github.com/schultyy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shop exercise\n\nHere you should practise how to structure your application.\n\n\n## Tasks\n\n1. Clone this repository\n\n2. Define, which class goes into which layer (view, domain,\n   infrastructure). Create a new folder for each layer and move the classes into their folders.\n\n3. Add the missing require statements.\n\n4. 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 the `Article` class.\n\n5. Complete the `menu.rb` class so that in the end you can order articles, show all available articles, show shopping card and so on.\n\n6. 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.\n\n7. 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.\n\nHelp:\n- [Lightning sessions Software architecture] (https://github.com/CodePadawans/lightning-sessions/blob/master/software_architecture.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschultyy%2Flayer-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschultyy%2Flayer-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschultyy%2Flayer-exercise/lists"}