Skip to content

Commit

Permalink
Merge pull request #1 from beatricetay/gh-ugdg
Browse files Browse the repository at this point in the history
added planning features and changed inherited features from AB3'
  • Loading branch information
beatricetay authored Mar 4, 2020
2 parents 488467d + 403ad31 commit f4e43a0
Showing 1 changed file with 73 additions and 25 deletions.
98 changes: 73 additions & 25 deletions docs/UserGuide.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= AddressBook Level 3 - User Guide
= Healthy Baby - User Guide
:site-section: UserGuide
:toc:
:toc-title:
Expand All @@ -14,26 +14,29 @@ ifdef::env-github[]
endif::[]
:repoURL: https://github.com/AY1920S2-CS2103T-T10-1/main

By: `Team SE-EDU` Since: `Jun 2016` Licence: `MIT`
By: `Team HYBB` Since: `Mar 2020` Licence: `MIT`

== Introduction

AddressBook Level 3 (AB3) is for those who *prefer to use a desktop app for managing contacts*. More importantly, AB3 is *optimized for those who prefer to work with a Command Line Interface* (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, AB3 can get your contact management tasks done faster than traditional GUI apps. Interested? Jump to the <<Quick Start>> to get started. Enjoy!
HealthyBaby (HYBB) is for those who *wish to lead a healthier lifestyle by cooking healthier meals*.
HYBB is *optimized for those who prefer to work with a Command Line Interface* (CLI) while still having the benefits of a Graphical User Interface (GUI).
Through our convenient filters, searching and planning for new healthy recipes will be a breeze.
Get motivated through our eye-catching goals and achievements. Interested? Jump to the <<Quick Start>> to get started. Enjoy!

== Quick Start

. Ensure you have Java `11` or above installed in your Computer.
. Download the latest `addressbook.jar` link:{repoURL}/releases[here].
. Copy the file to the folder you want to use as the home folder for your Address Book.
. Download the latest `healthybaby.jar` link:{repoURL}/releases[here].
. Copy the file to the folder you want to use as the home folder for your HealthyBaby application.
. Double-click the file to start the app. The GUI should appear in a few seconds.
+
image::Ui.png[width="790"]
+
. Type the command in the command box and press kbd:[Enter] to execute it. +
e.g. typing *`help`* and pressing kbd:[Enter] will open the help window.
. Enter the command in the command box to execute it. +
e.g. Entering *`help`* will open the help window.
. Some example commands you can try:

* *`list`* : lists all contacts
* **`find`** : lists all contacts
* **`add`**`n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01` : adds a contact named `John Doe` to the Address Book.
* **`delete`**`3` : deletes the 3rd contact shown in the current list
* *`exit`* : exits the app
Expand All @@ -46,38 +49,51 @@ e.g. typing *`help`* and pressing kbd:[Enter] will open the help window.
====
*Command Format*
* Words in `UPPER_CASE` are the parameters to be supplied by the user e.g. in `add n/NAME`, `NAME` is a parameter which can be used as `add n/John Doe`.
* Items in square brackets are optional e.g `n/NAME [t/TAG]` can be used as `n/John Doe t/friend` or as `n/John Doe`.
* Items with `…`​ after them can be used multiple times including zero times e.g. `[t/TAG]...` can be used as `{nbsp}` (i.e. 0 times), `t/friend`, `t/friend t/family` etc.
* Parameters can be in any order e.g. if the command specifies `n/NAME p/PHONE_NUMBER`, `p/PHONE_NUMBER n/NAME` is also acceptable.
* Words in `UPPER_CASE` are the parameters to be supplied by the user e.g. in `add n/NAME`, `NAME` is a parameter which can be used as `add n/Spicy Chicken`.
* Items in square brackets are optional e.g `n/NAME [g/GOAL]` can be used as `n/Spicy Chicken g/Bulk like the Hulk` or as `n/Spicy Chicken`.
* Items with `…`​ after them can be used multiple times including zero times e.g. `[g/GOAL]...` can be used as `{nbsp}` (i.e. 0 times), `g/Bulk like the Hulk`, `g/Wholesome wholemeals' g/Herbivore` etc.
* Parameters can be in any order e.g. if the command specifies `n/NAME i/INGREDIENT`, `i/INGREDIENT n/NAME` is also acceptable.
====

=== Viewing help : `help`

Format: `help`

=== Adding a person: `add`
=== Adding a recipe: `add`

Adds a person to the address book +
Format: `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]...`
Adds a recipe to the recipe book +
Format: `add n/NAME t/TIME [ig/AMT, GRAINS_INGREDIENT] [iv/AMT, VEGETABLE_INGREDIENT] [ip/AMT, PROTEIN_INGREDIENT] [io/AMT, OTHER_INGREDIENT] [g/GOAL]...`

[TIP]
A person can have any number of tags (including 0)
A recipe can have any number of ingredients and goals (including 0).
The amount (AMT) of each ingredient is measured by grams (g).
The time taken for the meal to be cooked is measured in minutes (min).

Examples:

* `add n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01`
* `add n/Betsy Crowe t/friend e/[email protected] a/Newgate Prison p/1234567 t/criminal`
* `add n/Spicy Chicken t/30 ip/300, Chicken Wings io/50, Ketchup io/50, Garlic Chili Sauce
* `add n/Everyday Salad Bowl t/10 iv/100, Romaine Lettuce iv/100, Cherry Tomato iv/100, Cucumber, io/30, Salad Dressing g/Herbivore

=== Listing all persons : `list`
=== Adding the steps to a recipe: `addS`

Shows a list of all persons in the address book. +
Adds the steps to a recipe at the specified index +
Format: `addS INDEX NEXT_STEP [/ NEXT_STEP]`

[TIP]
Any number of steps can be added to the recipe.

Examples:
*

=== Listing all recipes : `list`

Shows a list of all recipes in the recipe book. +
Format: `list`

=== Editing a person : `edit`
=== Editing a recipe : `edit`

Edits an existing person in the address book. +
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG]...`
Edits an existing recipe in the recipe book. +
Format: `edit INDEX [n/NAME] [ig/AMT, GRAINS_INGREDIENT] [iv/AMT, VEGETABLE_INGREDIENT] [ip/AMT, PROTEIN_INGREDIENT] [io/AMT, OTHER_INGREDIENT] [g/GOAL]...`

****
* Edits the person at the specified `INDEX`. The index refers to the index number shown in the displayed person list. The index *must be a positive integer* 1, 2, 3, ...
Expand All @@ -94,9 +110,15 @@ Edits the phone number and email address of the 1st person to be `91234567` and
* `edit 2 n/Betsy Crower t/` +
Edits the name of the 2nd person to be `Betsy Crower` and clears all existing tags.

=== Locating persons by name: `find`
=== Editing the steps to a recipe : `editS`

Edits the steps of an existing recipe in the recipe book. +
Format: `editS RECIPE_INDEX STEP_INDEX NEW_STEP'


Finds persons whose names contain any of the given keywords. +
=== Locating recipes by name: `find`

Finds recipes whose names contain any of the given keywords. +
Format: `find KEYWORD [MORE_KEYWORDS]`

****
Expand Down Expand Up @@ -157,6 +179,32 @@ There is no need to save manually.
_{explain how the user can enable/disable data encryption}_
// end::dataencryption[]

== Advanced Features

=== Planning

==== Set a recipe to be cooked on a certain day: `set`

Set a recipe that you would like to cook on a certain day. +
Format: `set RECIPE_INDEX d/YYYY-MM-DD`

==== See planned recipes: `planned`

Check the recipes you have planned out during a period of time or within the next few days. +
Format: planned d/YYYY-MM-DD to d/YYYY-MM-DD
Format: planned NUM_OF_DAYS

==== Get ingredient list: `get`

Gives you the list of ingredients needed for the recipes that you have planned during a period of time or within the next few days. +
Format: get d/YYYY-MM-DD to d/YYYY-MM-DD
Format: get NUM_OF_DAYS

==== Suggest a recipe based on current goal: `suggest`

Gives you a random recipe which falls under the goal you have chosen. +
Format: suggest

== FAQ

*Q*: How do I transfer my data to another Computer? +
Expand Down

0 comments on commit f4e43a0

Please sign in to comment.