Code Monkey home page Code Monkey logo

pizza-parlor's Introduction

Pizza Parlor

Epicodus Week 4 - Friday Prompt

By Filmer Tolentino

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JS
  • jQuery
  • Github

Description/Goals

Create a website for a pizza company where a user can choose one or more individual toppings (cheese, pepperoni, artichoke, anchovy, etc) and a size to order a pizza and see the final cost.

Objectives

  • Constructors and prototypes are used successfully.
  • Application works as expected.
  • Tests are included for each business logic behavior and code is committed after each test passes.
  • Project is in a polished, portfolio-quality state.
  • The prompt’s required functionality and baseline project requirements are in place by the deadline.

Setup/Installation Requirements

  • git clone repository link, to your local machine.
  • requires an internet connection to run (Bootstrap and jQuery are using a CDN)
  • open the index.html file in your browser, or run Go Live in VS Code to run the code on your local host.

Link to website hosted on gh-pages

Check out the website

Known Bugs

N/A

Specs/TDD

Description: Pizza() Constructor Object

Test: Return a Pizza object with two properties for toppings and size
Code: const pizzaOrder = new Pizza(["pepperoni", "black olives"], "large");
Expected Output: Pizza { toppings: ["pepperoni", "black olives"], size: "large" }

Description: selectSize() Pizza prototype

Test: Checks the value of selected size and assigns it to the Pizza constructor size property
Code: pizza.selectSize();
Expected Output: size: small, medium, or large

Description: selectToppings() Pizza prototype

Test: Map through each toppings checkbox input and return it's value into an array
Code: pizza.selectToppings();
Expected Output: toppings: [...]

Description: sizePrice()

Test: Assign a price based on pizza selection price
Code: pizza.sizePrice();
Expected Output: 10, 14, 18

Description: toppingPrice()

Test: Output the cost of each topping based off the length of the toppings array length
Code: 
toppingPrice()
pizza.toppingCost
Expected Output: 1-4, depending on how many toppings you choose. Each topping is worth 1 dollar

Description: sumTotal()

Test: Total cost of pizza size and toppings
Code:
pizza.sumTotal();
pizza.totalCost;
Expected Output: size price + number of toppings

License

  • MIT

If you run into any issues or have any concerns, feel free to Contact me: [email protected], or request to make any contributions to my code.

Copyright (c) 5/27/2022 Filmer Tolentino

pizza-parlor's People

Contributors

ftolentino avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.