Recipe.io is a command line application that helps people who love to cook, be it professional culinary practitioners, or even students, to manage and access their recipes.
In particular, it allows users to keep track of the URL at which he or she found or wrote down the recipe.
Follow these steps to get started with Recipe.io
Ensure that you have Java 11 installed.
java -jar tp.jar
[]
are compulsory, while those inside {}
are optional.,
as a delimiter, so ensure not to use commas within parameters for intended usability.help
Shows instructions to use RecipeIO’s chatbot.
Format: help
add
Adds recipe with a comma separated description. The application saves your recipe book in a .txt file everytime this command is run.
Format: add NAME,MINUTES,KCALS,ALLERGIES,CATEGORY,URL
NAME
can include multiple words.MINUTES
must be an integer.KCALS
must be an integer.ALLERGIES
can take multiple allergies, separated by a slash. e.g. egg/dairy
All allergies must be singular tense. e.g. egg
NOT eggs
CATEGORY
must be one of: breakfast
, lunch
, dinner
, appetizer
, dessert
, or general
.URL
must be a string, that leads to the website that contains the full recipe.
It should begin with "www"
, "http"
or "https"
and have a valid domain.Example of usage:
add pizza, 34, 340, egg/dairy/red meat, dinner, www.food.com
add burger, 30, 500, dairy, lunch, https://www.bbcfoods.com
add fries, 20, 200, dairy, dessert, http://www.example.com
delete
Deletes a recipe at a given recipe number. The application saves your recipe book in a .txt file everytime this command is run.
Format: delete RECIPE_NUMBER
RECIPE_NUMBER
must be within the number of recipes already added.list
(with no SORT_TYPE
specified), find
, or filter
commands.list
Lists a summarized version of your recipe book. This summarized version includes the recipes’ name, date added, and url in the order they were added
Format: list {SORT_TYPE}
SORT_TYPE
flag is optional and must be either sortname
(sort the list by name), sortdate
(sort the list by date added), sortcooktime
(sort the list by cooktime), or sortcalories
(sort the list by calories).SORT_TYPE
is specified in the command, RecipeIO will sort the list in ascending order (from older to newer for sortdate
).detail
Shows all details of a recipe.
Format: detail RECIPE_NUMBER
RECIPE_NUMBER
must be within the number of recipes already added.list
(with no SORT_TYPE
specified), find
, or filter
commands.find
Searches for all recipes that meet a certain criteria.
Format: find TYPE CRITERIA
TYPE
must be either kw
(search by keyword), date
(search by date), meal
(search by meal category)
or url
(search by url)kw
is given, CRITERIA
must be a word. This searches for an exact match of the word in the recipe name.date
is given, CRITERIA
must be a date in yyyy-MM-dd format. This searches for recipes added on this date.meal
is given, CRITERIA
must be a valid meal category. There are 6 meal categories: general
, breakfast
, lunch
, dinner
, appetizer
, and dessert
.url
is given, CRITERIA
must be a valid url. This searches in the recipe list for a match in domain of the
url, or an exact match if full url with path is given.Example of usage:
find kw pizza
find date 2024-03-28
find meal breakfast
find url www.food.com
(will find entries with this as a domain)
find url www.food.com/pasta/carbonara
(will find the entry with this exact url)
filter
Shows recipes that do not contain a given allergy.
Format: filter CRITERIA
CRITERIA
must be a word. Ensure that the criteria is singular tense (eg. egg
NOT eggs
)Example of usage:
filter egg
exit
Exits program gracefully.
Format: exit
Upon exiting, a file named recipe.txt
will be saved containing your recipe book.
When rerunning the program the next time, RecipeIO will look for this saved file, to load your previously recorded
recipes once again.
java -version
in your command line. If you have an earlier version, please update Java.java -jar tp.jar
in your command line. If the file does not execute, check for any typos in the command or re-download the JAR file to ensure it isn’t corrupted.Errors in Command Syntax: If your commands are not executing as expected, check the command syntax in the Commands
section of this guide. Make sure all parameters are correctly formatted and separated as described.
A: Follow the steps in the ‘Getting Started’ section of this guide, which include installing Java, downloading the JAR file, and running it via command line.
A: Recipe.io automatically saves your recipes in a recipe.txt file upon exit. Ensure you exit the program using the exit command to trigger the save. You can even keep a backup of this file in another location for extra security.
A: Download the latest JAR file from the official github website and replace the existing one. Your recipes are stored separately in recipe.txt and won’t be affected by the update.
sortname
or sortdate
options in the list command to view your recipes in alphabetical order or by the date added, making them easier to find.help
add NAME,MINUTES,KCALS,ALLERGIES,CATEGORY,URL
delete RECIPE_NUMBER
list {SORT_TYPE}
detail RECIPE_NUMBER
find kw NAME_KEYWORD
find date YYYY-MM-DD
find meal MEAL_CATEGORY
find url URL
filter ALLERGY
exit
More instructions can also be found at any time using the help
command.
Have fun with RecipeIO!