Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2113-W14-1] FitNUS #16

Open
wants to merge 426 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 66 commits
Commits
Show all changes
426 commits
Select commit Hold shift + click to select a range
cfc69ba
Revert "Revert "Add JUnit tests for exercise""
jasonlienardi Apr 1, 2024
e44ae39
Add JUnit tests for exercise
jasonlienardi Apr 1, 2024
5555d52
Edit DG,UG and minor fixes
jasonlienardi Apr 1, 2024
229d753
Merge pull request #62 from jasonlienardi/Add-JUnit-and-Assertions
jasonlienardi Apr 1, 2024
7474502
Edit User Storeis
jasonlienardi Apr 1, 2024
ed9e09e
Fix minor tests
jasonlienardi Apr 1, 2024
584814e
Merge pull request #64 from jasonlienardi/Update-Developer-Guide
BryanCastorius Apr 1, 2024
864a049
Edit user guide
BryanCastorius Apr 1, 2024
a86ccfa
added recommendations to view Calories and view Water
tinaliu27 Apr 1, 2024
39a7464
added method to add into csv file based on user input
tinaliu27 Apr 1, 2024
926f599
added readfile to the eat command
tinaliu27 Apr 1, 2024
f94c13b
Merge pull request #65 from BryanCastorius/master
edwardhumi Apr 2, 2024
82611a9
Merge branch 'master' into master
claribelho Apr 2, 2024
7ab0238
Merge pull request #66 from tinaliu27/master
claribelho Apr 2, 2024
a3cfccf
Update UserGuide
edwardhumi Apr 2, 2024
432a5ea
Revert "added recommendations to view Calories and view Water"
jasonlienardi Apr 2, 2024
1921e9c
Merge pull request #68 from AY2324S2-CS2113-W14-1/revert-66-master
jasonlienardi Apr 2, 2024
710726e
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
edwardhumi Apr 2, 2024
d72d3b3
Merge pull request #69 from edwardhumi/master
BryanCastorius Apr 2, 2024
e3618ab
Edit recommendation feature
BryanCastorius Apr 2, 2024
2c00fed
Merge pull request #70 from BryanCastorius/master
BryanCastorius Apr 2, 2024
4f7b9da
Update DeveloperGuide
edwardhumi Apr 2, 2024
e535ea4
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 2, 2024
b6618da
Add javadoc for User class
claribelho Apr 2, 2024
7f40003
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 2, 2024
fc4fecd
Merge pull request #71 from edwardhumi/master
edwardhumi Apr 2, 2024
18dbe82
Add javadoc for handleRecommendations method
claribelho Apr 2, 2024
c5fc0b7
Add javadoc to Date and IntegerValidation classes
claribelho Apr 2, 2024
539d982
Add documentation for Parser
edwardhumi Apr 2, 2024
ce565b7
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
edwardhumi Apr 2, 2024
dd523cf
Merge pull request #72 from edwardhumi/master
edwardhumi Apr 2, 2024
52bb67c
Add documentation for FitNUS, UI and Water class
claribelho Apr 2, 2024
4bc8689
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 2, 2024
f8172f2
Fix checkstyle error in Parser
claribelho Apr 2, 2024
3a05182
Merge pull request #73 from claribelho/master
claribelho Apr 2, 2024
032f0e6
Update user guide
BryanCastorius Apr 2, 2024
f2d12ed
Merge pull request #75 from BryanCastorius/master
BryanCastorius Apr 2, 2024
8c65649
Add methods where user can view a list of pre-defined meals, drinks o…
claribelho Apr 2, 2024
f6b9b45
Update help command with new methods
claribelho Apr 2, 2024
5893460
Update UserGuide
claribelho Apr 2, 2024
f91526b
Merge pull request #76 from claribelho/listout-predefined
claribelho Apr 2, 2024
7ba816a
Add more test to ParserTest
edwardhumi Apr 2, 2024
4d4e437
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 2, 2024
3721c1f
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 2, 2024
c52363b
Merge pull request #77 from edwardhumi/master
edwardhumi Apr 2, 2024
7a26419
Add documentation for Drink and Meal
claribelho Apr 2, 2024
b7aa975
Add documentation for exercise
claribelho Apr 2, 2024
9c1e371
Add documentations to exception classes
claribelho Apr 2, 2024
a0446fc
Merge pull request #78 from claribelho/documentation
claribelho Apr 2, 2024
9adbf14
Configure github pages theme
claribelho Apr 2, 2024
e921b13
Merge pull request #79 from claribelho/documentation
claribelho Apr 2, 2024
c8ccc2d
Fix bug where user inputs command in the wrong order
claribelho Apr 2, 2024
ef684bf
Fix handleCommand
claribelho Apr 2, 2024
6a8d4ec
Fix checkstyle error
claribelho Apr 2, 2024
9350e2b
Merge pull request #80 from claribelho/fixing-bugs
claribelho Apr 2, 2024
4d50784
Update user guide
BryanCastorius Apr 2, 2024
2d45725
Update user guide
BryanCastorius Apr 2, 2024
069cff2
Merge pull request #81 from BryanCastorius/master
BryanCastorius Apr 2, 2024
70edbab
Add newMeal and newDrink feature
jasonlienardi Apr 2, 2024
cacaec7
Add greater or equal to check in validator
jasonlienardi Apr 2, 2024
d7bc40b
Merge branch 'master' into Add-New-Meal-feature
jasonlienardi Apr 2, 2024
c9bbf68
Merge with master
jasonlienardi Apr 2, 2024
ddc9742
Merge pull request #82 from jasonlienardi/Add-New-Meal-feature
BryanCastorius Apr 2, 2024
58fcdd2
Update UserGuide
jasonlienardi Apr 2, 2024
4e439db
update db
jasonlienardi Apr 2, 2024
10055ad
Update userguide and db
jasonlienardi Apr 2, 2024
38020ab
Update UserGuide
jasonlienardi Apr 2, 2024
69ee7e4
Merge pull request #83 from jasonlienardi/Add-New-Meal-feature
edwardhumi Apr 2, 2024
7ec3eba
Update UserGuide
edwardhumi Apr 2, 2024
b57e3f2
Merge pull request #84 from edwardhumi/master
jasonlienardi Apr 2, 2024
27eb252
Fix CSV reader
edwardhumi Apr 2, 2024
61d3840
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
edwardhumi Apr 2, 2024
d498a4a
Merge pull request #85 from edwardhumi/master
edwardhumi Apr 2, 2024
b548bb5
Fix testing errors
edwardhumi Apr 2, 2024
7601d89
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 2, 2024
50619e0
Merge pull request #86 from edwardhumi/master
edwardhumi Apr 2, 2024
1e5d042
Add New Exercise Feature
jasonlienardi Apr 2, 2024
afe419d
Update UserGuide
jasonlienardi Apr 2, 2024
77c626a
Merge pull request #87 from jasonlienardi/master
jasonlienardi Apr 2, 2024
662d526
Update README.md
claribelho Apr 2, 2024
11847d2
Update README.md
claribelho Apr 2, 2024
d2120ec
Update README.md
claribelho Apr 2, 2024
6fb5484
Update developer guide and add diagrams
BryanCastorius Apr 2, 2024
95be90d
Add sequence diagram
BryanCastorius Apr 3, 2024
a943fbf
Merge pull request #91 from BryanCastorius/master
BryanCastorius Apr 3, 2024
da127f3
Add PPP Draft
jasonlienardi Apr 9, 2024
8f00128
Merge pull request #127 from jasonlienardi/master
jasonlienardi Apr 9, 2024
7290804
Add PPP document
claribelho Apr 10, 2024
583c18c
Merge pull request #128 from claribelho/master
claribelho Apr 10, 2024
95068aa
Add PPP for bryancastorius
BryanCastorius Apr 10, 2024
d0fea39
Update PPP for bryancastorius
BryanCastorius Apr 10, 2024
4a733cd
Merge pull request #129 from BryanCastorius/master
BryanCastorius Apr 10, 2024
881e105
Reorganize StorageManager
edwardhumi Apr 10, 2024
da1bdd7
Merge branch 'master' into StorageManager
edwardhumi Apr 10, 2024
4c3c2dd
Fix checkstyle
edwardhumi Apr 10, 2024
cb4f4e9
Merge pull request #131 from edwardhumi/StorageManager
BryanCastorius Apr 10, 2024
ecade62
Add Edward's PPP
edwardhumi Apr 10, 2024
491e830
Merge pull request #132 from edwardhumi/master
edwardhumi Apr 10, 2024
9f0c602
Refactor ExerciseList
jasonlienardi Apr 10, 2024
0713959
Merge pull request #133 from jasonlienardi/Refactor-ExerciseList
BryanCastorius Apr 10, 2024
5b4f83a
Refactor MealList
claribelho Apr 10, 2024
29eb73f
Follow Reposense unused folder
claribelho Apr 10, 2024
e042427
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 10, 2024
6a34012
Fix checkstyle error
claribelho Apr 10, 2024
c6b11d2
Fix CheckStyleTest error
claribelho Apr 10, 2024
9215b14
Merge pull request #134 from claribelho/master
claribelho Apr 10, 2024
8289e4a
Add pre-defined meal and drinks
claribelho Apr 10, 2024
d646442
Refactor Drink and Water list classes
BryanCastorius Apr 10, 2024
6be645e
Merge pull request #135 from BryanCastorius/master
claribelho Apr 10, 2024
87b89b7
Create ui and date packages
BryanCastorius Apr 10, 2024
e0f2413
Merge pull request #136 from BryanCastorius/master
BryanCastorius Apr 10, 2024
5842d7d
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 10, 2024
bfdf3db
Add check if input date has passed
claribelho Apr 10, 2024
1c0ef11
Fix date validation for user input dates
claribelho Apr 10, 2024
3ede16e
Fix PED issue #103
claribelho Apr 10, 2024
022a6e5
Fix checkstyle errors
claribelho Apr 10, 2024
ec96d82
Fix PE-Bugs
jasonlienardi Apr 11, 2024
095d7a6
Merge pull request #139 from jasonlienardi/PE-bug-fixes
claribelho Apr 12, 2024
c348317
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 12, 2024
625285d
Update UserTest after reorganisation of classes
claribelho Apr 12, 2024
3dd5d6c
Remove unused variables in UserTest
claribelho Apr 12, 2024
7e35c72
Update MealListTest after reorganisation of classes
claribelho Apr 12, 2024
2cb12c1
Update DrinkListTest after reorganisation of classes
claribelho Apr 12, 2024
9f6ed11
Update ExerciseListTest after reorganisation of classes
claribelho Apr 12, 2024
ac3e9d4
Merge branch 'master' into fix-ped-bugs
claribelho Apr 12, 2024
e8b013d
Fix Checkstyle Errors
claribelho Apr 12, 2024
3a0b358
Remove unused import of Date Class
claribelho Apr 12, 2024
e3ea139
Merge pull request #137 from claribelho/fix-ped-bugs
claribelho Apr 12, 2024
21e9e61
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 12, 2024
c24ddc7
Fix merge conflicts
claribelho Apr 12, 2024
45f90d3
Fix PED bug issue #92 on unrecognised commands with whitespaces
claribelho Apr 12, 2024
2d17b75
Fix PED bug issue #95 of view count overflowing int value
claribelho Apr 12, 2024
4956502
Update data type of variables to long
claribelho Apr 12, 2024
50962c7
Update calorie count in recommendation to be long
claribelho Apr 12, 2024
e5bdb59
Merge pull request #140 from claribelho/update-junit
claribelho Apr 12, 2024
9ba3549
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp …
claribelho Apr 12, 2024
064aaa2
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 12, 2024
c26335e
Merge branch 'fixing-ped-bugs'
claribelho Apr 12, 2024
5097b98
Merge branch 'master' into fixing-ped-bugs
claribelho Apr 12, 2024
0424d02
Fix checkstyle error in IntegerValidation
claribelho Apr 12, 2024
5b95962
Fix checkstyle error in User
claribelho Apr 12, 2024
c45ef3d
Fix checkstyle error in ExerciseListTest
claribelho Apr 12, 2024
adb575e
Merge branch 'fixing-ped-bugs' of https://github.com/claribelho/tp in…
claribelho Apr 12, 2024
ee1f1f1
Merge pull request #141 from claribelho/fixing-ped-bugs
edwardhumi Apr 13, 2024
3bdc0df
Update UserGuide
edwardhumi Apr 13, 2024
8a71f59
Merge pull request #142 from edwardhumi/master
edwardhumi Apr 13, 2024
ca6a8ba
Fix bugs and documentations relating to Water.java class
BryanCastorius Apr 14, 2024
3648c1d
Minor change in printing output
BryanCastorius Apr 14, 2024
0440140
Merge pull request #143 from BryanCastorius/master
BryanCastorius Apr 14, 2024
f8a054f
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 14, 2024
afd847e
Add sequence diagram for Ui class in DG
claribelho Apr 14, 2024
87a882d
Add class diagrams
BryanCastorius Apr 14, 2024
335c14b
Merge pull request #144 from claribelho/dg-parser
BryanCastorius Apr 14, 2024
9d4abd3
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
BryanCastorius Apr 14, 2024
db5a720
Update class diagram images
BryanCastorius Apr 14, 2024
80219c1
Add sequence diagram for Storage class in UG
claribelho Apr 14, 2024
c4a0012
Update DG
BryanCastorius Apr 14, 2024
335d081
Add sequence diagram for User component in DG
claribelho Apr 14, 2024
ad18796
Add descriptions to User Component in DG
claribelho Apr 14, 2024
b3d4112
Update Parser Diagram png
claribelho Apr 14, 2024
1b3929b
Merge pull request #145 from claribelho/dg-parser
BryanCastorius Apr 14, 2024
da86b66
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
BryanCastorius Apr 14, 2024
90015da
Delete johndone.md
BryanCastorius Apr 14, 2024
b1a09f5
Merge pull request #146 from BryanCastorius/master
BryanCastorius Apr 14, 2024
8000c62
Add Storage Implementation in DG
edwardhumi Apr 14, 2024
478ab9c
Merge pull request #147 from edwardhumi/master
edwardhumi Apr 14, 2024
c785714
Update user stories in DG
BryanCastorius Apr 14, 2024
4056e0e
Merge pull request #148 from BryanCastorius/master
BryanCastorius Apr 14, 2024
9c23a44
Add Storage Class Diagram
edwardhumi Apr 14, 2024
b02a5fc
Merge pull request #1 from AY2324S2-CS2113-W14-1/master
edwardhumi Apr 14, 2024
254828b
Merge pull request #149 from edwardhumi/master
edwardhumi Apr 14, 2024
c80d48c
Edit Storage Class Diagram
edwardhumi Apr 14, 2024
5748a6f
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 14, 2024
5e159c0
Merge pull request #150 from edwardhumi/master
edwardhumi Apr 14, 2024
41fc1a6
Update DG
jasonlienardi Apr 14, 2024
f9240d2
Update UG
BryanCastorius Apr 14, 2024
c8b60eb
Merge pull request #151 from jasonlienardi/master
BryanCastorius Apr 14, 2024
35fc243
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
BryanCastorius Apr 14, 2024
313f84b
Update DG
BryanCastorius Apr 14, 2024
066ef9b
Merge pull request #152 from BryanCastorius/master
BryanCastorius Apr 14, 2024
e4b64e1
Fix PED issue #118 on corrupted saved files
claribelho Apr 14, 2024
8dbdb94
Fix checkstyle issue
claribelho Apr 14, 2024
f64235b
Fix bug for waterIntake that exceeds MAX_INT
claribelho Apr 14, 2024
f67f566
Fix PED issue #122 on excessive water intake
claribelho Apr 14, 2024
b001692
Fix PED issue #114 on units of measurement
claribelho Apr 14, 2024
01e4377
Fix PED issue #111 on clear()
claribelho Apr 14, 2024
8cd4b14
Update user guide for 1.1 of feature list
claribelho Apr 14, 2024
2a1f64d
Update Entire User Guide with a standardised format
claribelho Apr 14, 2024
4a53e8c
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp …
claribelho Apr 14, 2024
e38490a
Update tests to changes
claribelho Apr 14, 2024
d9ce54e
Test reposense
claribelho Apr 14, 2024
d8b52a2
Merge pull request #153 from claribelho/bug-defense
claribelho Apr 14, 2024
5251236
Update README
claribelho Apr 14, 2024
2aee8f8
Merge pull request #154 from claribelho/bug-defense
claribelho Apr 14, 2024
d8b2d79
Update UG and README based on deployment bugs
claribelho Apr 14, 2024
8c3de52
Merge pull request #155 from claribelho/bug-defense
jasonlienardi Apr 15, 2024
6773191
Update DG
BryanCastorius Apr 15, 2024
5c79479
Add PPP and delete meal command to DG
jasonlienardi Apr 15, 2024
484da5f
Update PPP and ReadMe
jasonlienardi Apr 15, 2024
18a6620
Fix aboutus
jasonlienardi Apr 15, 2024
f8a345e
Merge pull request #156 from jasonlienardi/Update-PPP
BryanCastorius Apr 15, 2024
a36beff
Merge branch 'master' of https://github.com/BryanCastorius/tp
BryanCastorius Apr 15, 2024
a09c842
Update PPP
BryanCastorius Apr 15, 2024
8f77ac8
update Readme
jasonlienardi Apr 15, 2024
15f1a60
Merge pull request #158 from jasonlienardi/Update-PPP
jasonlienardi Apr 15, 2024
5b35363
update reposense link
jasonlienardi Apr 15, 2024
3b93407
Update PPP
claribelho Apr 15, 2024
0ecb6c4
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp
claribelho Apr 15, 2024
9ec1cfa
Add photo
jasonlienardi Apr 15, 2024
5bbb0e0
Update about us
jasonlienardi Apr 15, 2024
0bbd0f9
Merge pull request #159 from jasonlienardi/Update-PPP
jasonlienardi Apr 15, 2024
698c906
Merge branch 'AY2324S2-CS2113-W14-1:master' into master
BryanCastorius Apr 15, 2024
0d00d16
Merge pull request #157 from BryanCastorius/master
BryanCastorius Apr 15, 2024
76cad7c
Update Edward's PPP
edwardhumi Apr 15, 2024
63e71a9
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 15, 2024
5281cb2
Merge pull request #160 from edwardhumi/master
edwardhumi Apr 15, 2024
19890ff
Update Edward's PPP
edwardhumi Apr 15, 2024
be5bdc8
Merge pull request #2 from AY2324S2-CS2113-W14-1/master
edwardhumi Apr 15, 2024
769e164
Merge pull request #161 from edwardhumi/master
edwardhumi Apr 15, 2024
21d16d1
Add Enhancements for PPP
edwardhumi Apr 15, 2024
05617e2
Merge branch 'master' of https://github.com/edwardhumi/tp
edwardhumi Apr 15, 2024
a0a8779
Merge pull request #162 from edwardhumi/master
edwardhumi Apr 15, 2024
8e56d13
Simplify storage and user sequennce diagram
claribelho Apr 15, 2024
0d13b0f
Update UG with note for user
claribelho Apr 15, 2024
6e6602d
Update UG on lack of editExercise
claribelho Apr 15, 2024
e126d22
Update User component in DG
claribelho Apr 15, 2024
3940df2
Finalise PPP
claribelho Apr 15, 2024
7904408
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp …
claribelho Apr 15, 2024
d2e916c
Fix checkstyle error
claribelho Apr 15, 2024
42e4fb7
Merge pull request #163 from claribelho/DG
BryanCastorius Apr 15, 2024
a3de315
Update UserGuide.md based on page deployment formatting errors
claribelho Apr 15, 2024
4efe781
Update UserGuide.md
claribelho Apr 15, 2024
11f9ad6
Update _config.yml
claribelho Apr 15, 2024
02bd36b
Update PPP links
claribelho Apr 15, 2024
261f421
Merge branch 'master' of https://github.com/AY2324S2-CS2113-W14-1/tp …
claribelho Apr 15, 2024
a813c94
Update digrams image references in DG
claribelho Apr 15, 2024
a0744a9
Merge pull request #164 from claribelho/DG
claribelho Apr 15, 2024
5c739fa
Update DG
BryanCastorius Apr 15, 2024
5fe7ab7
Merge branch 'master' into master
BryanCastorius Apr 15, 2024
028a268
Fix PPP link error
claribelho Apr 15, 2024
db5d7ff
Merge pull request #165 from BryanCastorius/master
BryanCastorius Apr 15, 2024
ee64b4b
Edit Storage Class Diagram
edwardhumi Apr 15, 2024
e755ce6
Merge pull request #166 from edwardhumi/master
edwardhumi Apr 15, 2024
975f4a9
Resize sequence diagrams in DG
claribelho Apr 15, 2024
a3d044d
Merge pull request #167 from claribelho/DG
claribelho Apr 15, 2024
3c01b83
Regenerate diagrams.png
claribelho Apr 15, 2024
2b0c464
Merge pull request #168 from claribelho/DG
claribelho Apr 15, 2024
401cbdf
Update DeveloperGuide.md
claribelho Apr 15, 2024
1ec0d36
Update UserGuide.md
claribelho Apr 15, 2024
8cd1eff
Update UserGuide.md
claribelho Apr 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
283 changes: 219 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,219 @@
# Duke project template

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

## Setting up in Intellij

Prerequisites: JDK 11 (use the exact version), update Intellij to the most recent version.

1. **Ensure Intellij JDK 11 is defined as an SDK**, as described [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk) -- this step is not needed if you have used JDK 11 in a previous Intellij project.
1. **Import the project _as a Gradle project_**, as described [here](https://se-education.org/guides/tutorials/intellijImportGradleProject.html).
1. **Verify the set up**: After the importing is complete, locate the `src/main/java/seedu/duke/Duke.java` file, right-click it, and choose `Run Duke.main()`. If the setup is correct, you should see something like the below:
```
> Task :compileJava
> Task :processResources NO-SOURCE
> Task :classes

> Task :Duke.main()
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|

What is your name?
```
Type some word and press enter to let the execution proceed to the end.

## Build automation using Gradle

* This project uses Gradle for build automation and dependency management. It includes a basic build script as well (i.e. the `build.gradle` file).
* If you are new to Gradle, refer to the [Gradle Tutorial at se-education.org/guides](https://se-education.org/guides/tutorials/gradle.html).

## Testing

### I/O redirection tests

* To run _I/O redirection_ tests (aka _Text UI tests_), navigate to the `text-ui-test` and run the `runtest(.bat/.sh)` script.

### JUnit tests

* A skeleton JUnit test (`src/test/java/seedu/duke/DukeTest.java`) is provided with this project template.
* If you are new to JUnit, refer to the [JUnit Tutorial at se-education.org/guides](https://se-education.org/guides/tutorials/junit.html).

## Checkstyle

* A sample CheckStyle rule configuration is provided in this project.
* If you are new to Checkstyle, refer to the [Checkstyle Tutorial at se-education.org/guides](https://se-education.org/guides/tutorials/checkstyle.html).

## CI using GitHub Actions

The project uses [GitHub actions](https://github.com/features/actions) for CI. When you push a commit to this repo or PR against it, GitHub actions will run automatically to build and verify the code as updated by the commit/PR.

## Documentation

`/docs` folder contains a skeleton version of the project documentation.

Steps for publishing documentation to the public:
1. If you are using this project template for an individual project, go your fork on GitHub.<br>
If you are using this project template for a team project, go to the team fork on GitHub.
1. Click on the `settings` tab.
1. Scroll down to the `GitHub Pages` section.
1. Set the `source` as `master branch /docs folder`.
1. Optionally, use the `choose a theme` button to choose a theme for your documentation.
# FitNUS
## Project Introduction
FitNUS is a CLI application that aims to help combat diabetes and the overconsumption of calories, sugar, and
carbohydrates. Promote healthy lifestyle.

Users are able to track the meals and drinks they have in a day.

## Table of Contents
<!-- TOC -->
[1) Features List](#1-features-list)
* [1.1 Information for users](#11-information-for-users)
* [1.1.1 Viewing all commands:** `help`](#111-viewing-all-commands-help-)
* [1.2 For user to add data](#12-for-user-to-add-data)
* [1.2.1 Add a meal eaten: `ate`](#121-add-a-meal-eaten-ate)
* [1.2.2 Add a drink: `drink`](#122-add-a-drink-drink)
* [1.2.3 Add water: `water`](#123-add-water-water)
* [1.3 For data retrieval](#13-for-data-retrieval)
* [1.3.1 Find the information about a certain meal: `infoMeal`](#131-find-the-information-about-a-certain-meal-infomeal)
* [1.3.2 Find the information about a certain drink: `infoDrink`](#132-find-the-information-about-a-certain-drink-infodrink)
* [1.3.3 View daily calories consumed: `calories`](#133-view-daily-calories-consumed-calories)
* [1.3.4 View daily carbohydrates consumed: `carbs`](#134-view-daily-carbohydrates-consumed-carbs)
* [1.3.5 View daily proteins consumed: `protein`](#135-view-daily-proteins-consumed-protein)
* [1.3.6 View daily fat consumed: `fat`](#136-view-daily-fat-consumed-fat)
* [1.3.7 View daily sugar consumed: `sugar`](#137-view-daily-sugar-consumed-sugar)
* [1.3.8 View daily fiber consumed: `fiber`](#138-view-daily-fiber-consumed-fiber)
* [1.3.9 View daily water consumption: `viewWater`](#139-view-daily-water-consumption-viewwater)
* [1.4 For listing arrays](#14-for-listing-arrays)
* [1.4.1 List meal intake: `listMeals`](#141-list-meal-intake-listmeals)
* [1.4.2 List drink intake: `listDrinks`](#142-list-drink-intake-listdrinks)
* [1.4.3 List entire food intake for the day: `listEverything`](#143-list-entire-food-intake-for-the-day-listeverything)
* [1.5 For editing existing data](#15-for-editing-existing-data)
* [1.5.1 Edit an existing meal after inserted: `editMeal`](#151-edit-an-existing-meal-after-inserted-editmeal)
* [1.5.2 Edit an existing drink after inserted: `editDrink`](#152-edit-an-existing-drink-after-inserted-editdrink)
* [1.5.3 Edit water intake after inserted: `editWater`](#153-edit-water-intake-after-inserted-editwater)
* [1.6 For deleting data](#16-for-deleting-data)
* [1.6.1 Delete certain meal entry: `deleteMeal`](#161-delete-certain-meal-entry-deletemeal)
* [1.6.2 Delete certain drink entry: `deleteDrink`](#162-delete-certain-drink-entry-deletedrink)
* [1.7 For clearing data](#17-for-clearing-data-)
* [1.7.1 Clear all entries: `clear`](#171-clear-all-entries-clear)
* [1.8: Exit program](#18-exit-program)
* [1.8.1 Exit the app: `exit`](#181-exit-the-app-exit)
<!-- TOC -->

## 1) Features List
### 1.1 Information for users
### 1.1.1 Viewing all commands:** `help`
Shows a list of all possible command inputs.
**Format**: help
**Sample Input**: help
**Expected Output**:
here's all the valid commands i recognise:
- Add a meal eaten: ate m/MEAL s/SERVING_SIZE
- Add a drink: drink d/DRINK s/SERVING_SIZE
- Add water: water s/SERVING_SIZE
- Find the information about a certain meal: infoMeal MEAL
- Find the information about a certain drink: infoDrink DRINK
- View daily calories consumed: calories
- View daily carbohydrates consumed: carbs
- View daily proteins consumed: protein
- View daily fat consumed: fat
- View daily sugar consumed: sugar
- View daily fiber consumed: fiber
- View daily water consumption: viewWater
- List meal intake: listMeals
- List drink intake: listDrinks
- List entire food intake for the day: listEverything
- Edit an existing meal after inserted: editMeal INDEX s/NEW_SERVING_SIZE
- Edit an existing drink after inserted: editDrink INDEX s/NEW_SERVING_SIZE
- Delete certain meal entry: deleteMeal INDEX
- Delete certain drink entry: deleteDrink INDEX
- Clear all entries: clear
- Exit the app: exit

### 1.2 For user to add data
### 1.2.1 Add a meal eaten: `ate`
Adds a meal to the list of meals
**Format**: ate m/MEAL s/SERVING_SIZE
**Sample Input**: ate m/Chicken Rice s/1
**Expected Output**: Added 1 serving of Chicken Rice

### 1.2.2 Add a drink: `drink`
Adds a drink to the list of drinks
**Format**: drink d/DRINK s/SERVING_SIZE
**Sample Input**: drink d/Lemon Tea s/100
**Expected Output**: Added 100ml of Lemon Tea

### 1.2.3 Add water: `water`
Adds water (in ml) to the daily water intake count
**Format**: water s/SERVING_SIZE
**Sample Input**: water s/200
**Expected Output**: Added 200ml of water

## 1.3 For data retrieval
### 1.3.1 Find the information about a certain meal: `infoMeal`
For the specified meal, display its nutritional content to the user
**Format**: infoMeal MEAL
**Sample Input**: infoMeal chicken rice
**Expected Output**:
Meal: chicken rice (per serving)
Calories: 400
Carbs: 50
Protein: 30
Fat: 20
Fiber: 10
Sugar: 5

### 1.3.2 Find the information about a certain drink: `infoDrink`
For the inputed drink, display its nutritional content to the user
**Format**: infoDrink DRINK
**Sample input**: infoDrink sprite
**Expected output**:
SPRITE (473 ml)
Calories: 194 kcal
Carbs: 50g
Protein: 0.2g
Fat: 0.1g

### 1.3.3 View daily calories consumed: `calories`
Display current total calorie intake for the day
**Format**: calories
**Expected output**: Total calories: 100 cal

### 1.3.4 View daily carbohydrates consumed: `carbs`
Display current total carbohydrates intake for the day
**Format**: carbs
**Expected output**: Total Carbohydrates: 150 grams

### 1.3.5 View daily proteins consumed: `protein`
Display current total protein intake for the day
**Format**: protein
**Expected output**: Total proteins: 100 grams

### 1.3.6 View daily fat consumed: `fat`
Display current total fat intake for the day
**Format**: fat
**Expected output**: Total fat: 50 grams

### 1.3.7 View daily sugar consumed: `sugar`
Display current total sugar intake for the day
**Format**: sugar
**Expected output**: Total sugar: 20 grams

### 1.3.8 View daily fiber consumed: `fiber`
Display current total fiber intake (g) for the day
**Format**: viewFiber
**Expected output**: Total fiber: 20 grams

### 1.3.9 View daily water consumption: `viewWater`
Display current total water intake (in ml) for the day
**Format**: viewWater
**Expected output**: Total water intake: 0 ml

## 1.4 For listing arrays
### 1.4.1 List meal intake: `listMeals`
List all the meals user inputted today
**Format**: listMeals
**Expected output**:
here's what you have eaten today
1.pizza (serving size: 1)

### 1.4.2 List drink intake: `listDrinks`
List all the drinks user inputted today
**Format**: listDrinks
**Expected output**:
here's what you have drank today
1.sprite (serving size: 1)
Total water intake: 0 ml

### 1.4.3 List entire food intake for the day: `listEverything`
List all the drinks and meals inputted today
**Format**: listEverything
**Expected output**:
here's what you have consumed today
1.pizza (serving size: 1)
2.sprite (serving size: 1)
Total water intake: 0 ml

## 1.5 For editing existing data
### 1.5.1 Edit an existing meal after inserted: `editMeal`
For a meal that was inputted in the day, edit its serving size
**Format**: editMealServingSize INDEX s/NEW_SERVING_SIZE
**Sample input**: editMeal 2 s/2
**Expected output**: Pizza has been edited to 2 servings

### 1.5.2 Edit an existing drink after inserted: `editDrink`
For a drink that was inputted in the day, edit its serving size
**Format**: editDrinkServingSize INDEX s/NEW_SERVING_SIZE
**Sample input**: editDrink 1 s/200
**Expected output**: Sprite has been edited to 200 ml

### 1.5.3 Edit water intake after inserted: `editWater`
Edit serving size of total water intake
**Format**: editWaterIntake s/TOTAL_WATER_INTAKE
**Sample input**: editWaterIntake 200
**Expected output**: Total water has been edited to 200 ml

## 1.6 For deleting data
### 1.6.1 Delete certain meal entry: `deleteMeal`
For a meal that was inputted in the day, delete its input based on its index in the meal list
**Format**: deleteMeal INDEX
**Sample Input**: deleteMeal 1
**Expected output**: Removed Chicken Rice From Meals

### 1.6.2 Delete certain drink entry: `deleteDrink`
For a drink that was inputted in the day, delete its input based on its index in the drink list
**Format**: deleteDrink INDEX
**Sample input**: deleteDrink 1
**Expected output:** Removed Iced Lemon Tea From Drinks

## 1.7 For clearing data
### 1.7.1 Clear all entries: `clear`
Clear all entries in mealList and drinkList
**Format**: clear
**Expected output**: All entries have been deleted

## 1.8: Exit program
### 1.8.1 Exit the app: `exit`
**Format**: exit
**Expected output**: Bye. Hope to see you again soon!
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ test {
}

application {
mainClass.set("seedu.duke.Duke")
mainClass.set("seedu.fitnus.FitNus")
}

shadowJar {
archiveBaseName.set("duke")
archiveBaseName.set("fitnus")
archiveClassifier.set("")
}

Expand All @@ -43,4 +43,5 @@ checkstyle {

run{
standardInput = System.in
enableAssertions = true
}
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@
<module name="InvalidJavadocPosition"/>

</module>
</module>
</module>
6 changes: 3 additions & 3 deletions config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0"?>

<!DOCTYPE suppressions PUBLIC
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">

<suppressions>
<suppress checks="JavadocType" files=".*Test\.java"/>
<suppress checks="MissingJavadocMethodCheck" files=".*Test\.java"/>
</suppressions>
</suppressions>
20 changes: 20 additions & 0 deletions db/Drink_db.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Drink Name,Calories,Carbs,Protein,Fat
Teh C Bing,231,24,15,1
Teh,151,29,4,0.8
Kopi,141,26.7,2.3,2.8
Milo,124,20,3.4,3.4
Milo Dinosaur,270,42,7,8
Sugarcane juice ,192,52.2,0,0
Bandung,153,32,1.1,2
Teh Tarik,124,21.22,2.98,3.28
100 plus,72,18,0,0
Tiger Beer (100ml),42,3.4,0.4,0
Kopi O,67,14.9,0.5,0
Kopi C,117,20,1,3.6
Iced Lemon Tea,95,20.9,1,0.1
Honey Lemon Tea,134,36,0.2,0
Soursop Juice ,117,25,2.8,1.4
Kalamansi Juice,168,42,0,0
Chrysanthemun Juice ,12.2,1.54,1.71,0.3
Guava Juice ,143,38,0,0
Plum Juice ,57,13.3,0.5,0
22 changes: 22 additions & 0 deletions db/Meal_db.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Meal Name,Calories,Carbs,Proteins,Fats,Fiber
Chicken Rice (382g),607,75,25,23,2
Char Kway Teow (384g),744,76,23,29.2,7.3
Laksa,377,71,18,2,4
Hokkien Prawn Mee,522,69,18,19,4.4
Kaya Toast ,459,44.4,8,27.2,1.3
Mee Goreng (309g),500,61,18,20,4.4
Char Siew Rice (327g),605,91,24,16,5.9
Nasi lemak (210g),494,80,13,14,6.5
roti prata ,209,32,5,7,1.7
Pork Satay with Satay Sauce ,36,0.36,4.99,1.52,0
Nasi Goreng (1 cup),346,44.95,12.93,12.25,1.4
Wanton Mee (400g),555,96.79,15.1,14.13,13.8
Mala ,583,72.35,12.22,30.85,7
Oyster Omlette ,467,40.07,19.03,24.33,0.6
Pepper lunch ,500,50,40,11,4.6
Ban Mian (528g),475,48,22,22,3.2
Soup Kambeng,203.8,5.6,28.8,6.8,1.1
Durian (100g),147,27.09,1.47,5.33,3.8
Ice KaChang (504g),257,58,6,1,2
Tau Huay (282g),153,32.2,14.1,1.5,1
Chendol (368g),386,59,6,15,2
13 changes: 6 additions & 7 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# About us

Display | Name | Github Profile | Portfolio
--------|:----:|:--------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
Display | Name | Github Profile | Portfolio
--------|:---------------------:|:-------------------------------------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | Edward Humianto | [Github](https://github.com/edwardhumi) | [Portfolio](docs/team/edwardhumi.md)
![](https://via.placeholder.com/100.png?text=Photo) | Jason Lienardi | [Github](https://github.com/jasonlienardi) | [Portfolio](docs/team/johndoe.md)
-- | Claribel Ho | [Github] (https://github.com/claribelho) | [Portfolio] (docs/team/claribelho.md)
![](https://via.placeholder.com/100.png?text=Photo) | Bryan Castorius Halim | [Github](https://github.com/BryanCastorius) | [Portfolio](docs/team/bryancastorius.md)
Loading
Loading