Giter VIP home page Giter VIP logo

veganrestaurant-'s Introduction

Sunshine Inn Restaurant

This python code allows The Happy Cow restaurant's customers check the menu and choose what they want order from it. It is a all vegan/vegeterian restaurant.

Features:

  • It starts by welcoming the user and asking them their name:

name

  • The user has two options of menus:

mainMenu

  • After chossing from the two option the menu with the different dishes is display. Each of the dishes has discription, calories and cooking time:

saladMenu

  • Every time the user is choosing a dish, it is printed to the terminal:

dishPrinted

  • Users can decide whether to finish their order or prefer to continue ordering. They can see the complete order:

completeOrder

  • Once user finish they order, the order worksheet is updated and this way the cook can see the name of the customer and every dish they have ordered :

orderUpdated

Input validation:

  • Users must provide a valid name
  • There is one input that only accepts the words Salad, Pizza, or Burger
  • The rest of the input accepts only integers within the range

Data model:

This project was created using different APIS and modules:

  • gspread: to be able to open and get all the values from the menu created in Google Sheets
  • collestions/difaultdict: store data in a dictionary even if some values are missing. The rest of the code are functions with if/else statements to have access to the different menu options. While loops and try/except statement were used to validate the different user inputs.

Testing

I have manually tested this project by doing:

  • Pased the code throught a PEP8 only with one warning
  • Given invalid inputs: string where numbers are expected, numbers where strings are expected, out of range inputs
  • Tested in the local terminal and the Code Institute Heroku terminal

Bugs

Solved Bugs:

  • When I was writing the code I was not able to update the orders worksheet: I was having a error message every time. This was because I was trying to append a two dimensional list. Using a different method (insert_rows) I was able to update the worksheet
  • The creds.json file was dissapearing every time I was closing the workspace. I had to create a new repository to fix the problem. Because of this there are not enough commits

Validator testing:

  • I got this warning when I run the code in PEP8 validator: PEP8: After check my code a few times I could not find a better way to write that part of the code.

Deployment

This project was deployed using personal Heroku account.

Steps for deployment:

  • Fork or clone this repository
  • Create a new Heroku app
  • Set the builtpacks to Python and NodeJS in the order
  • Link the Heroku app to repository
  • Click on Deploy

Credits

  • Code institute for provide the template.
  • Clarifying concepts with w3schools.com and https://pythontutor.com/.
  • I want to give credits to my tutor Sandeep Aggarwal.
  • The README sample was taken from Battleship Game Project.

veganrestaurant-'s People

Contributors

luquintas11 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.