Burger Party is a catering company providing Burgers, Fries and Drinks to parties.
They want an app made where guests at the party can choose the food and drink they would like and a record made of the order, so they can prepare it for collection. This benefits the customer as they can make an order through the app and not have to physically queue. This also benefits the company by taking the pressure off of having a physical queue in front of them and allowing them to prepare the order in a more relaxed manner.
- Welcomes the user
- Displays the choice of burgers (from the burgers sheet)
- Asks the user to choose a burger type
- The choice is validated to be a correct choice
- Asks the user to confirm their choice of burger
- Displays the choice of fries (from the fries sheet)
- Asks the user to choose a type of fries
- Asks the user to confirm their choice of fries
- Displays the choice of drinks (from the drinks sheet)
- Asks the user to choose a drink type
- Asks the user to confirm their choice of drink
- Asks the user if they would like to to add whisky to their drink
- If they want whisky they are asked for their date of birth
- If they are under 18 they are informed they are too young
- The order is confirmed to the user
- The order is added to the order worksheet
The main areas for testing have been carried out manually and evidenced in the images below:
- The user is welcomed
- The choice of burgers are displayed
These are taken from the Burgers sheet
- The user is asked to choose a burger type
- If the user choice is not a valid choice the user is prompted to try again
- Confirming burger choice
Whenever confirming a choice only a user input of Y, y, N or n is accepted
Entering an incorrect number
Entering an incorrect character Entering an uppercase Y Entering a lowercase y Entering an uppercase N Entering a lowercase n- The choice of fries are displayed
These are taken from the fries sheet
- The user is asked to choose a type of fry
-
If the user choice is not a valid choice the user is prompted to try again
-
Displays the choice of drinks (from the drinks sheet)
- Asks the user to confirm their choice of drink
- Asks the user if they would like to to add whisky to their drink
- If they want whisky they are asked for their date of birth, which must be in the correct format
- If they are under 18 they are informed they are too young
- The order is relayed to the user
- The order is added to the order worksheet
- HTML
- Python
The app was deployed to Heroku in the following way:
-
All dependencies must be added to the Requirements.txt file.
-
Once logged into Heroku, click the Create new app button.
-
Enter a unique name for the app, a region and click Create app.
-
In the Config Vars section of the Setting tab click Reveal Config Vars. Name a key "CREDS" and copy and paste the creds.json file into the corresponding Value. A further key named PORT should be created with the value of 8000.
-
Click Add buildpack in the Settings page and select Python and click to save changes. Repeat for Node.js.
-
Click the Deploy tab on the Application Confirmation page and select GitHub for connection method. Enter the name of the GitHub repository and click Connect.
-
Click to Automatically Deploy the app each time the master branch is updated.
-
Click Open App within the Application Configuration page to run the program.
- Log into GitHub or create an account.
- Select the GitHub Repository.
- Click "Fork" at the top right of the page.
- The repository will be copied into your GitHub account.
- Log into GitHub or create an account.
- Select the GitHub Repository.
- Click on the Code button.
- Copy the provided SSH link.
- Open Terminal.
- Navigate into the directory you want to clone the repository to.
- Type git clone and paste the copied URL.
$ git clone https://github.com/mjjstockman/burgers
- Press Enter.
Many thanks to the following which were used throughout the creation of this site:
- Many thanks to my mentor for guidance.
- Thank you to the Code Institute Slack community for their advice.