CookFood is a java program that exists to ease the weekly creation of shopping lists given frequently cooked recipes. It does this by integrating three different features together.
- The program takes input recipe data (like name and cookbook, along with their ingredients and relevant quantities) which can be saved locally for later use.
- This information attached to these recipes can be viewed and revised at any point.
- The recipes a user wishes to buy ingredients for (those they are cooking in a given week) can be selected, and CookFood will automatically generate a shopping list for them populated with their ingredients and quantities
To run this project on your computer, download the latest version from this GitHub page under the releases tab, and follow the below instructions
This project currently requires the following to run:
- At least Java version 1.12
- Windows, OSX or Linux Operating Systems
- Download the latest version of this program from the releases tab - Releases
- Unzip the downloaded program folder
- Move the unzipped folder to a convenient location on your computer
- If you are using Windows, double-click "RUNME.bat", otherwise, just double-click "CookFood.jar"
- CookFood should now open ready for you to use. If you encounter any issues during the installation process, please see the FAQ below
IMPORTANT SETUP POINT To ensure the program scales correctly to your screen size when running on Windows 10, follow these steps:
- Open the Settings app
- Navigate into the System window
- Navigate to the Display tab
- Scroll down to "Scale and Layout"
- Change the value of the "Change the size of text, apps, and other items" combo box to 100%
This section assumes that you have been able to open the program as instructed above
- Select the "Add Recipe" button that is displayed on the main interface
- Click on the boxes labelled "Recipe Title" and "Cookbook", and input relevant recipe data into them
- To add ingredients to the recipe, see the "Adding/Removing Ingredients" section
- Select the "Submit Recipe" button to save the input data to the system
- The recipe creation screen should disappear and the recipe you just created should appear on the right hand side of the screen
- Click on the boxes labelled "Ingredient Name" input the name of the ingredient you want to add
- Type the positive integer quantity of the ingredient that you wish to add
- Select the quantity type you wish to be associated with this ingredient using the ComboBox that defaults to "GRAMS"
- Click the "Add Ingredient" button if you wish to save this ingredient into system memory. The added ingredient should appear on the right-hand side of the screen
- To remove ingredient(s), select the checkbox(es) next to their names on the right-hand side of the screen, and select the "Delete Ingredient(s)" button
- To delete recipes from CookFood, select the checkbox(es) next to their titles on the right-hand side of the main interface, and select the "Delete Recipe(s)" button
- Select "Yes" on the prompt to finalise the deletion of the selected recipe(s)
- To edit a recipe saved in CookFood, select the checkbox next to the title of the recipe you wish to edit on the right-hand side of the main interface, then select the "Edit Recipe" button
- Edit the recipe information as in the "Creating/Editing a Recipe" section above. If you change the title of the recipe, CookFood will stop editing and instead save the recipe as a duplicate
- To generate a shopping list containing the ingredients saved within saved CookFood recipes, select the checkbox(es) next to the title(s) of the recipe(s) you wish to edit on the right-hand side of the main interface, then select the "Generate List" button
- Navigate using the prompt to a location on your computer that you wish to save the recipe in, and then, after entering a "File Name" to save the shopping list with, select the "Save" button
- CookFood has now saved the generated Shopping List in the location you specified on your system. Open this file to view and print your List
You probably haven't installed java correctly on your computer. To reinstall java, go to this website, and download the latest and correct version of java for you
When you open CookFood for the first time, you should see a folder called "CookFoodRecipes" created on the same system level as where you keep the "CookFood.jar" you unzipped earlier. Created recipes are saved into this folder. Please don't introduce new files into this folder, or alter saved files, without prior knowledge of the saving and opening algorithm, as it will cause errors to occur
Yes! Don't delete recipes without careful thought first
If a button is greyed out, it means that you aren't able to use that button given the information you have currently provided the system with. For example, if you haven't selected a recipe on the main interface, you won't be able to use the "Delete", "Edit", or "Generate" buttons. Try selecting some boxes or inputting more data into the system to continue
Although a Recipe is technically "A set of instructions for preparing a particular dish, including a list of the ingredients required", for the purposes of this program a Recipe is simply the list of ingredients (and other key information) used to create a specific dish
- Matthew Brian - Initial Work - Kludgy4
- Barker College SDD Class of 2019