{"id":19681476,"url":"https://github.com/mejia-dev/pizza-parlor","last_synced_at":"2025-02-27T06:41:43.683Z","repository":{"id":205323993,"uuid":"713948120","full_name":"mejia-dev/pizza-parlor","owner":"mejia-dev","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-04T18:40:21.000Z","size":830,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T05:38:44.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mejia-dev.github.io/pizza-parlor/","language":"JavaScript","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/mejia-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-03T15:21:22.000Z","updated_at":"2024-06-15T19:04:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"54a29092-cedd-4fdb-92bd-c58df60b6f36","html_url":"https://github.com/mejia-dev/pizza-parlor","commit_stats":null,"previous_names":["mejia-dev/pizza-parlor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejia-dev%2Fpizza-parlor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejia-dev%2Fpizza-parlor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejia-dev%2Fpizza-parlor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejia-dev%2Fpizza-parlor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mejia-dev","download_url":"https://codeload.github.com/mejia-dev/pizza-parlor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240990783,"owners_count":19889944,"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-11-11T18:07:59.150Z","updated_at":"2025-02-27T06:41:43.676Z","avatar_url":"https://github.com/mejia-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Epicrust Pizza Parlor\n\n#### By github.com/mejia-dev\n\n#### A simple website to create and order pizzas from the best pizza place in town!\n\n## Technologies Used\n\n* HTML\n* CSS\n* JavaScript\n\n## Description\n\nThis webpage is an example of what a pizza parlor's website could look like and includes a functioning system to add pizzas to the cart.\n\n## Setup/Installation Requirements\nOption A:\n* Navigate to https://mejia-dev.github.io/pizza-parlor/ in your browser of choice\n\nOption B:\n* Clone this repository to your desktop (from the git console, run \"git clone https://github.com/mejia-dev/pizza-parlor.git\" without quotes)\n* Navigate to the top level of the directory.\n* Open the index.html file in your browser of choice.\n\n\n## Known Bugs\n\n* none\n\n## License\n\nMIT License\n\nCopyright (c) 2023 github.com/mejia-dev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Tests:\n\nDescribe: Cart()\n\nTest: \"It will construct a new empty Cart object to contain other objects\"\nCode: const myCart() = new Cart;\nExpected Output: Cart{}\n\n\nDescribe: Cart.prototype.addItem\n\nTest: \"It will add an object to the Cart's 'items' property\"\nCode: myCart().addItem(myObject)\nExpected Output: myCart(items:{myObject})\n\n\nDescribe: Cart.prototype.assignId\n\nTest: \"It will assign an Id to any object added to the cart and use this Id as the object's key\"\nCode: myCart().addItem(myObject)\nExpected Output: myCart(items:{1})\n\n\nDescribe: Cart.prototype.removeItem\n\nTest: \"It will remove an object from the Cart's 'items' property by id\"\nCode: myCart().removeItem(1);\nExpected Output: true;\n\n\nDescribe: Pizza()\n\nTest: \"It will construct a new Pizza object with a string property for size, and an array property for toppings\"\nCode: myPizza1 = new Pizza(\"L\",[\"pepperoni\", \"pineapple\"])\nExpected Output: Pizza { size: \"L\", toppings: [\"pepperoni\", \"pineapple\"]}\n\n\nDescribe: Pizza.prototype.calculatePrice\n\nTest: \"It will return the cost of a Pizza object based on the pizza's size. S=8, M=10, L=12\"\nCode: \nmyPizza1 = new Pizza(\"L\",[\"pepperoni\", \"pineapple\"]);\ncalculatePrice(myPizza1);\nExpected Output: 12\n\nTest: \"It will return the cost of a Pizza object based on the number of the pizza's toppings. Each topping adds 1.\"\nCode: myPizza1 = new Pizza(\"L\",[\"pepperoni\", \"pineapple\"]);\ncalculatePrice(myPizza1);\nExpected Output: 14\n\n\nDescribe: buildPizza(size, toppings)\n\nTest: \"It will use constructors to build a new Pizza object.\"\nCode: buildPizza(\"L\", [\"pepperoni\", \"pineapple\"])\nExpected Output: Pizza { size: \"L\", toppings: [\"pepperoni\", \"pineapple\"]}\n\nTest: \"It will add the new Pizza object to the global cart.\"\nCode: buildPizza(\"L\", [\"pepperoni\", \"pineapple\"])\nExpected Output: myCart { items: \"Pizza { id: 1, size: \"L\", toppings: [\"pepperoni\", \"pineapple\"]}\" }\n\n\nDescribe: deleteCartItem(id)\n\nTest: \"It will remove the associated pizza object from the global myCart using the prototype removeItem\"\nCode: deleteCartItem(1)\nExpected Output: undefined","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmejia-dev%2Fpizza-parlor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmejia-dev%2Fpizza-parlor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmejia-dev%2Fpizza-parlor/lists"}