tp

User Guide to Recipe.io

Introduction

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.

Features

1. Recipe Book Management

2. Command-Line Interface

Getting Started

Follow these steps to get started with Recipe.io

  1. Ensure that you have Java 11 installed.

  2. Download the latest JAR File:
  3. Run the JAR File from the command line:
    • Execute the JAR file to launch the chatbot.
    • java -jar tp.jar
  4. Interact with the Chatbot:
    • Follow the on-screen instructions to add recipes and manage your recipe book!

Commands

Disclaimers

1. Viewing help : help

Shows instructions to use RecipeIO’s chatbot.

Format: help

2. Adding a recipe : 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

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

3. Deleting a recipe : 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

4. Listing recipe book : 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}

5. Showing details of a recipe : detail

Shows all details of a recipe.

Format: detail RECIPE_NUMBER

6. Find recipes : find

Searches for all recipes that meet a certain criteria.

Format: find TYPE CRITERIA

Example of usage:

7. Filter recipes by allergy : filter

Shows recipes that do not contain a given allergy.

Format: filter CRITERIA

Example of usage: filter egg

8. Exit program: 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.

Troubleshooting

If you encounter issues while using Recipe.io, here are some common problems and their solutions:

Java Version Compatibility:
Problems Executing the JAR File:

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.

FAQs

Q: How do I install Recipe.io?

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.

Q: How can I backup my recipes?

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.

Q: How do I update Recipe.io?

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.

Tips and Best Practices

Command Summary

More instructions can also be found at any time using the help command.

Have fun with RecipeIO!