Skip to content

popoyuyu/pizza-parlor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pizza Parlor

By Jeff Lai

Pizza Parlor Web Application

Technologies Used

  • HTML
  • JavaScripit
  • jQuery
  • CSS
  • Boostrap
  • Markdown

Description

This browser application allows users to purchase a pizza. The cost will be based on the size of the pizza and the amount of toppings added.

Setup/Installation Requirements

  • Open terminal and enter "https://github.com/popoyuyu/pizza-parlor".
  • Next, enter "cd pizza-parlor" to navigate into project directory.
  • Open index.html in your browser.
  • Enter "code." to open project file in VSCode.

Known Bugs

  • No known issues.

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) November 5th 2021 Jeff Lai

TDD

Describe: Pizza()

*Tests: "It should return a Pizza object with two properties for size and toppings" *Code: const myPizza = new Pizza ("medium", ["anchovies", "pineapple"]); *myPizza; *Expected Ouput: Pizza { size: "medium", toppings: ["anchovies", "pineapple"] }

Describe: Pizza.prototype.sizeCost

*Tests: "It should return the cost of $10 for small, $12 for medium, or $15 for large *Code: const myPizza = new Pizza ("medium", ["anchovies"]); *myPizza.sizeCost(); *myPizza; *Expected Output: Pizza { size: "medium", toppings: ["anchovies"] price:12}

Describe: Pizza.prototype.toppingCost

*Tests: "It should add $1 to the cost when any toppings are added" *Code: const myPizza = new Pizza ("medium", ["anchovies"]); *myPizza.toppingCost(); *myPizza; *Expected Output: Pizza { size: "medium", toppings: ["anchovies" price :1]}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published