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-W12-3] MagusStock #39

Open
wants to merge 707 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
707 commits
Select commit Hold shift + click to select a range
fd14107
Modify filter category function and revert category (list/table)
Ng-YZ Apr 4, 2023
19b8649
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
Ng-YZ Apr 4, 2023
dbca6a6
Merge pull request #203 from firwer/master
firwer Apr 4, 2023
932d40d
Fix merge conflict
Ng-YZ Apr 4, 2023
38893f8
Update category-related UG information
Ng-YZ Apr 4, 2023
871787f
User Guide reformatting for Sell/Restock/Dashboard Command.
ngkaiwen123 Apr 4, 2023
cecc15e
UG: Update sample outputs for anything printed in tables
Ng-YZ Apr 4, 2023
028c0f8
Merge branch 'master' into master
ngkaiwen123 Apr 4, 2023
d0648e8
Edit 'Uncategorized' to 'uncategorized' to pass tests
Ng-YZ Apr 4, 2023
f159db7
no message
ngkaiwen123 Apr 4, 2023
c22039f
Edit UG
Ng-YZ Apr 4, 2023
14c6199
Add printing of alert warnings when alerts are created
ysl-28 Apr 4, 2023
aff2771
Clean up category code
Ng-YZ Apr 4, 2023
d80495d
-Edit command added OutfRange Checking Capability.
ngkaiwen123 Apr 4, 2023
c1abed6
Simplify remove function, edit junit tests with RemoveCommand used
Ng-YZ Apr 4, 2023
cdd98a4
-Added assertions for edit command testing
ngkaiwen123 Apr 4, 2023
5900520
modify UG anchors
Ng-YZ Apr 4, 2023
f0649cd
Merge pull request #213 from ysl-28/master
ysl-28 Apr 4, 2023
24577dc
Simplify remove command further, remove redundant ui methods, add fil…
Ng-YZ Apr 4, 2023
a1af74b
Fix merge conflict, clean up redundant ui variables
Ng-YZ Apr 4, 2023
f399e19
-Updating PPP document
ngkaiwen123 Apr 4, 2023
34952e8
Update tables in UG to show index column
ysl-28 Apr 4, 2023
5a36b15
Update help function's list of commands
Ng-YZ Apr 4, 2023
cea43a5
Append category table formatting
Ng-YZ Apr 4, 2023
90ba4da
Fix merge conflicts
Ng-YZ Apr 4, 2023
cd266fb
Checkstyle: align indentation
Ng-YZ Apr 4, 2023
332f4cd
Merge pull request #212 from Ng-YZ/master
Ng-YZ Apr 4, 2023
f65436b
-Editing Test Codes, further updates to user guide.
ngkaiwen123 Apr 4, 2023
4584017
Further updates to user guide
ngkaiwen123 Apr 4, 2023
d994b14
Merge branch 'master' into master
ngkaiwen123 Apr 4, 2023
b610d76
Merge pull request #194 from ngkaiwen123/master
ngkaiwen123 Apr 4, 2023
eebbd9f
Further changes to user guide
ngkaiwen123 Apr 4, 2023
2f927cb
Merge pull request #214 from ngkaiwen123/master
ngkaiwen123 Apr 4, 2023
2f5ba7f
Update tables in UG to include index column
ysl-28 Apr 4, 2023
8cfcba8
Merge pull request #216 from ysl-28/master
ysl-28 Apr 4, 2023
9cf673b
Add handling of invalid input for list command
ysl-28 Apr 4, 2023
2239f0d
Merge pull request #217 from ysl-28/master
ysl-28 Apr 4, 2023
7edf3a7
Fix search message appearing randomly when loading the program.
ArtemiszenN Apr 5, 2023
fd95656
checkstyle grrrr
ArtemiszenN Apr 5, 2023
4f123d9
Change filter command help table thing
ArtemiszenN Apr 5, 2023
3eba63e
Merge pull request #218 from ArtemiszenN/newMaster
ArtemiszenN Apr 5, 2023
642a4d7
PPP, Invalid input standardisation and Minor UG edits
firwer Apr 5, 2023
d6c1b4e
PPP update
firwer Apr 5, 2023
5d85945
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
firwer Apr 5, 2023
1e565ef
Add maximum range enforcement for alert adding
ysl-28 Apr 5, 2023
9cd7ec0
Remove unused comment
ysl-28 Apr 5, 2023
2cea44d
-Edits to the User Guide, Developer Guide
ngkaiwen123 Apr 5, 2023
9a67999
Merge pull request #221 from ngkaiwen123/master
ngkaiwen123 Apr 5, 2023
dce686f
refactor: name of PPP
firwer Apr 5, 2023
d5917e6
Merge branch 'master' of https://github.com/firwer/tp
firwer Apr 5, 2023
c8cb237
Edit alert regex to reject extra whitespace
ysl-28 Apr 5, 2023
a335278
Edit warning message for OutOfRangeException
ysl-28 Apr 5, 2023
4e1ee44
Update AddParserTest
ysl-28 Apr 5, 2023
83bc7d7
Merge branch 'master' into master
firwer Apr 5, 2023
264e1bb
Add support for punctuations to add command
firwer Apr 5, 2023
cd5a761
Merge branch 'master' of https://github.com/firwer/tp
firwer Apr 5, 2023
755d453
docs: Further improvement to UG
firwer Apr 5, 2023
a4d984f
Edit addWordWithoutWrap function to print sufficient spaces
Ng-YZ Apr 5, 2023
f8213a1
Append ui function to display '[]' in help table
Ng-YZ Apr 5, 2023
4b83d6c
Merge pull request #222 from Ng-YZ/master
Ng-YZ Apr 5, 2023
8593765
Fix typo in minimum alert warning and add more AddAlertCommand tests
ysl-28 Apr 5, 2023
b353cf0
Standardise printing of maximum quantity limit
ysl-28 Apr 5, 2023
d77f8ac
Merge pull request #220 from ysl-28/master
ysl-28 Apr 5, 2023
c4d538f
Merge branch 'master' into master
firwer Apr 5, 2023
10262fa
Merge pull request #219 from firwer/master
firwer Apr 5, 2023
abd4e3b
weipin why'd you merge when it can't compile ASKDLJHASKLJDH
ArtemiszenN Apr 5, 2023
1e4595a
Merge pull request #223 from ArtemiszenN/newMaster
ArtemiszenN Apr 5, 2023
846a204
Add javadoc comments
ysl-28 Apr 5, 2023
2409e6b
Fix formatting of help table in UG
ysl-28 Apr 5, 2023
c2e1083
Resolve merge conflict
ysl-28 Apr 5, 2023
6b0e92b
Merge pull request #224 from ysl-28/master
ysl-28 Apr 6, 2023
3b38723
Update PPP
ysl-28 Apr 6, 2023
c2850db
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 6, 2023
362685e
Merge pull request #231 from ysl-28/master
ysl-28 Apr 6, 2023
1756b62
-Fixes to edit command
ngkaiwen123 Apr 6, 2023
361c5b3
Minor edits to DG
ngkaiwen123 Apr 6, 2023
ffdc040
Small revamp of edit command test
ngkaiwen123 Apr 6, 2023
b5c39d3
Merge pull request #232 from ngkaiwen123/master
ngkaiwen123 Apr 6, 2023
5091eea
Harden session csv
ArtemiszenN Apr 6, 2023
77ddebd
Merge pull request #233 from ArtemiszenN/newMaster
ArtemiszenN Apr 6, 2023
bcfcd70
change readme to work with about us page
ArtemiszenN Apr 6, 2023
643ab1c
Merge pull request #234 from ArtemiszenN/newMaster
ArtemiszenN Apr 6, 2023
2f4bc04
Move benchmark data to data
ArtemiszenN Apr 7, 2023
24e2190
Merge pull request #235 from ArtemiszenN/newMaster
ArtemiszenN Apr 7, 2023
5424857
checkstyle
ArtemiszenN Apr 7, 2023
1f04561
Merge pull request #236 from ArtemiszenN/newMaster
ArtemiszenN Apr 7, 2023
e080872
Developer Guide Update for UML Diagrams for both Edit and Restock Com…
ngkaiwen123 Apr 7, 2023
342a5ce
Merge branch 'master' of https://github.com/ngkaiwen123/tp
ngkaiwen123 Apr 7, 2023
42b9707
Reedited the UML Diagrams for Developer Guide.
ngkaiwen123 Apr 7, 2023
090c80f
Developer Guide edits
ngkaiwen123 Apr 7, 2023
3d267fe
Documentation again
ngkaiwen123 Apr 7, 2023
2e1b7a5
Add more alert tests
ysl-28 Apr 7, 2023
da29999
-More test cases to ensure edit command is 99.999999999999999999% bug…
ngkaiwen123 Apr 7, 2023
2f5d1cb
Merge pull request #237 from ngkaiwen123/master
ngkaiwen123 Apr 7, 2023
62a7a6c
Update UG with example of alert warning message
ysl-28 Apr 7, 2023
7412be8
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 7, 2023
e020551
Merge pull request #238 from ysl-28/master
ysl-28 Apr 7, 2023
9d3b4e5
Add ppp for arty
ArtemiszenN Apr 7, 2023
4462098
Merge remote-tracking branch 'upstream/master' into newMaster
ArtemiszenN Apr 7, 2023
a23bfd2
Merge pull request #239 from ArtemiszenN/newMaster
ArtemiszenN Apr 7, 2023
f8a6918
ppp ppp ppp
ArtemiszenN Apr 7, 2023
9921525
Merge pull request #240 from ArtemiszenN/newMaster
ArtemiszenN Apr 7, 2023
beaead2
docs: DG improv
firwer Apr 8, 2023
e16c30f
merge conflict fix
firwer Apr 8, 2023
224703e
Update command summary
ysl-28 Apr 8, 2023
cfee4de
Update PPP
ysl-28 Apr 8, 2023
13bd6d7
fix: checkstyle & lowercase for add func
firwer Apr 9, 2023
27dc416
fix: checkstyle
firwer Apr 9, 2023
e1783a3
fix: checkstyle again
firwer Apr 9, 2023
4977698
merge conflict
firwer Apr 9, 2023
4bfbc8b
print category name with first letters of important words capitalised
Ng-YZ Apr 9, 2023
35e914a
Edit function now updates categoryHash
Ng-YZ Apr 9, 2023
cb898a9
Remove debugging printing statements
Ng-YZ Apr 9, 2023
ec7b311
extract variables to be static final variables
Ng-YZ Apr 9, 2023
eb81b30
Update AlertParser diagram
ysl-28 Apr 9, 2023
91606f0
Small touchups
Ng-YZ Apr 9, 2023
c7fbb0f
Fix checkstyle
Ng-YZ Apr 9, 2023
8cab233
Modify tests' expected categories
Ng-YZ Apr 9, 2023
4146af5
oops missed some expected outputs
Ng-YZ Apr 9, 2023
ce47396
Merge pull request #243 from Ng-YZ/master
Ng-YZ Apr 9, 2023
abf490d
Update Add/RemoveAlertCommand diagrams
ysl-28 Apr 9, 2023
ab3d0ae
Add PPP, add tests
Ng-YZ Apr 9, 2023
6016e4d
Update DG and alert diagrams
ysl-28 Apr 9, 2023
6325d28
Update PPP
ysl-28 Apr 9, 2023
7d4fc30
Add on to PPP
Ng-YZ Apr 9, 2023
9f6ddbb
Merge pull request #244 from Ng-YZ/master
Ng-YZ Apr 9, 2023
6937833
Resolve merge conflict
ysl-28 Apr 9, 2023
26488b6
Merge pull request #245 from ysl-28/master
ysl-28 Apr 9, 2023
79ee1b4
Add a new test to try and find the elusive remove bug
ArtemiszenN Apr 9, 2023
ab25e06
add category to the test
ArtemiszenN Apr 9, 2023
0e03bf9
Merge pull request #246 from ArtemiszenN/newMaster
ArtemiszenN Apr 9, 2023
40ec11f
Harden csv for rare bug
ArtemiszenN Apr 9, 2023
a60722f
-Slight edits to user guide, fix category for edit command
ngkaiwen123 Apr 9, 2023
6b3606a
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 9, 2023
55f5549
change ppp file name for artemis to match github name
ArtemiszenN Apr 9, 2023
1e26485
Merge pull request #247 from ArtemiszenN/newMaster
ArtemiszenN Apr 9, 2023
2684a74
Merge pull request #248 from ngkaiwen123/master
ngkaiwen123 Apr 9, 2023
c643eb6
Merge branch 'master' into master
firwer Apr 9, 2023
ff12415
fix: checkstyle
firwer Apr 9, 2023
01e231c
Merge pull request #242 from firwer/master
firwer Apr 9, 2023
294e64d
style thingies
ArtemiszenN Apr 9, 2023
572c8bf
Merge remote-tracking branch 'upstream/master' into newMaster
ArtemiszenN Apr 9, 2023
80f74c0
-DG Fix
ngkaiwen123 Apr 9, 2023
a738c4b
no message
ArtemiszenN Apr 9, 2023
2549cc2
Edit parser conditions to check for empty string
ysl-28 Apr 9, 2023
a3681de
Modify uml diagrams for remove and category
Ng-YZ Apr 9, 2023
d1cccdd
Add line of code to UML diagrams to follow format on website
Ng-YZ Apr 9, 2023
f9ed3af
Anchor links are now working
ngkaiwen123 Apr 9, 2023
877c5b7
Merge pull request #253 from ngkaiwen123/master
ngkaiwen123 Apr 9, 2023
f9b365e
Add line of code and titles to rest of UML to standardise
Ng-YZ Apr 9, 2023
312fc73
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
Ng-YZ Apr 9, 2023
beb95e1
Forgot to add line of code to overall sd oops
Ng-YZ Apr 9, 2023
3ebc729
Update RemoveAlert uml 'coz opt block was misplaced :(
Ng-YZ Apr 9, 2023
d42e3ea
Add maximum qty value of 99999999 to Types
ysl-28 Apr 9, 2023
fb7a265
Updated PPP
Ng-YZ Apr 9, 2023
91ccced
Standardise case of parameters in UG
ysl-28 Apr 9, 2023
4346faf
Missed a few other stuff, modified.
Ng-YZ Apr 9, 2023
e01fa16
Fix one typo
Ng-YZ Apr 9, 2023
43c8bbe
Edit UG with extremely minor standardisation
ysl-28 Apr 9, 2023
7b306f6
Edit UG with extremely minor standardisation
ysl-28 Apr 9, 2023
8c816f9
Resolve merge conflict
ysl-28 Apr 9, 2023
43c9323
Merge pull request #255 from Ng-YZ/master
Ng-YZ Apr 9, 2023
a5bf775
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 9, 2023
0867bbf
Update sequence diagrams for ListCommand and AlertParser
ysl-28 Apr 9, 2023
a6b138c
Update images for sequence diagrams
ysl-28 Apr 9, 2023
ec772d6
Merge remote-tracking branch 'upstream/master' into newMaster
ArtemiszenN Apr 9, 2023
b83197e
Merge pull request #252 from ArtemiszenN/newMaster
ArtemiszenN Apr 9, 2023
a0ed0d2
changed potential incorrect output for edit command, developer guide …
ngkaiwen123 Apr 9, 2023
f9b24b1
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 9, 2023
1284ce8
-More additions to DG Manual Testing Section. All that is left is ale…
ngkaiwen123 Apr 9, 2023
eac1109
Edits to Filter section of manual testing.
ngkaiwen123 Apr 9, 2023
e456b0d
Merge pull request #258 from ngkaiwen123/master
ngkaiwen123 Apr 9, 2023
6eb3520
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 10, 2023
55caf62
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
Ng-YZ Apr 10, 2023
cfa09e2
DG: add manual testing cases for alert, history and filter category
Ng-YZ Apr 10, 2023
4e3842a
-DG,PPP Edits
ngkaiwen123 Apr 10, 2023
df9c09a
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 10, 2023
8ddb64b
Merge pull request #260 from Ng-YZ/master
Ng-YZ Apr 10, 2023
1f2698b
Merge branch 'master' into master
Ng-YZ Apr 10, 2023
55d6c04
Update PPP
Ng-YZ Apr 10, 2023
d19f37a
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
Ng-YZ Apr 10, 2023
e0bb644
Update alert UML diagrams
ysl-28 Apr 10, 2023
505c0b2
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 10, 2023
be067b1
Merge pull request #256 from ysl-28/master
ysl-28 Apr 10, 2023
63c2487
Merge pull request #259 from ngkaiwen123/master
ngkaiwen123 Apr 10, 2023
34171d3
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
Ng-YZ Apr 10, 2023
7faa64c
Update About us
Ng-YZ Apr 10, 2023
fa6d67e
Merge pull request #261 from Ng-YZ/master
Ng-YZ Apr 10, 2023
fde0855
-More formatting fix to DG, ensure that website shows correct formatt…
ngkaiwen123 Apr 10, 2023
c12ea35
About Us edit
ngkaiwen123 Apr 10, 2023
debdd84
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 10, 2023
c4ffb59
no message
ngkaiwen123 Apr 10, 2023
c1ce9db
Merge branch 'master' of https://github.com/ngkaiwen123/tp
ngkaiwen123 Apr 10, 2023
ba28dc0
price / qty can now be 0 in save file
ArtemiszenN Apr 10, 2023
f06daea
Merge pull request #262 from ngkaiwen123/master
ngkaiwen123 Apr 10, 2023
2abe49d
Merge pull request #263 from ArtemiszenN/newMaster
ArtemiszenN Apr 10, 2023
18c7b97
page break dg
ArtemiszenN Apr 10, 2023
23554f0
Merge pull request #264 from ArtemiszenN/newMaster
ArtemiszenN Apr 10, 2023
0927fc8
-Added UG QnA section
ngkaiwen123 Apr 10, 2023
c0b2f2f
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 10, 2023
b95c88d
filter lowercase
ArtemiszenN Apr 10, 2023
4a7b7c9
Merge pull request #266 from ArtemiszenN/newMaster
ArtemiszenN Apr 10, 2023
1c8d070
Merge pull request #265 from ngkaiwen123/master
ngkaiwen123 Apr 10, 2023
4bd1e1a
Update CategoryFormatException.java
Ng-YZ Apr 10, 2023
8fac566
Update HistoryErrorException.java
Ng-YZ Apr 10, 2023
c4db0fc
Update MissingParametersException.java
Ng-YZ Apr 10, 2023
da80b05
Update SearchFilterErrorException.java
Ng-YZ Apr 10, 2023
60307a8
-Fix to Cat
ngkaiwen123 Apr 10, 2023
3c1a9fd
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 10, 2023
45327cd
Merge pull request #268 from ngkaiwen123/master
ngkaiwen123 Apr 10, 2023
67a4115
Update MissingParametersException.java
Ng-YZ Apr 10, 2023
84e7004
Merge pull request #267 from Ng-YZ/master
ysl-28 Apr 10, 2023
bcccb06
Update EditCommand.java
Ng-YZ Apr 10, 2023
1d12b33
Merge branch 'master' into master
Ng-YZ Apr 10, 2023
0c81920
Integrate alert with storage
ArtemiszenN Apr 10, 2023
041d229
Update CategoryCommand.java
Ng-YZ Apr 10, 2023
f4d45f9
Fix corrupt/empty alert file message
ArtemiszenN Apr 10, 2023
ab4e7bd
Update EditCommand.java
Ng-YZ Apr 10, 2023
5601200
fix typo in edit warning
ArtemiszenN Apr 10, 2023
6a3b8f6
Merge pull request #275 from ArtemiszenN/newMaster
ArtemiszenN Apr 10, 2023
dc895a7
Merge pull request #274 from Ng-YZ/master
ysl-28 Apr 10, 2023
0c88260
add add and alert sample formats
ArtemiszenN Apr 10, 2023
76ff073
small new line fix
ArtemiszenN Apr 10, 2023
f73ceb0
fix test
ArtemiszenN Apr 10, 2023
64444ae
Merge pull request #277 from ArtemiszenN/newMaster
ArtemiszenN Apr 10, 2023
e947791
DG: Edit UML diagram
Ng-YZ Apr 10, 2023
cd4a605
Update PPP
ngkaiwen123 Apr 10, 2023
36fc343
Merge branch 'master' of https://github.com/ngkaiwen123/tp
ngkaiwen123 Apr 10, 2023
c21a10e
Merge pull request #278 from Ng-YZ/master
Ng-YZ Apr 10, 2023
dc906cf
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
ngkaiwen123 Apr 10, 2023
e6feee6
Sync db storage status with actual status
ArtemiszenN Apr 10, 2023
6c449d4
Merge pull request #279 from ngkaiwen123/master
ngkaiwen123 Apr 10, 2023
9ff8e4c
DG Spacing
firwer Apr 10, 2023
648d7d8
Merge branch 'master' of https://github.com/firwer/tp
firwer Apr 10, 2023
048c4b6
Merge pull request #280 from ArtemiszenN/newMaster
ArtemiszenN Apr 10, 2023
069d133
DG update
firwer Apr 10, 2023
41e2a24
Merge branch 'AY2223S2-CS2113-W12-3:master' into master
firwer Apr 10, 2023
a65c090
PPP addon
firwer Apr 10, 2023
35052c6
PPP edit 2.0
firwer Apr 10, 2023
ed82c65
Merge pull request #281 from firwer/master
firwer Apr 10, 2023
6f1a77b
docs add profile pic
firwer Apr 10, 2023
4a0927f
Merge pull request #282 from firwer/master
firwer Apr 10, 2023
20a976e
Update PPP
ysl-28 Apr 10, 2023
7460a4c
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 10, 2023
7c51e04
Merge pull request #283 from ysl-28/master
ysl-28 Apr 10, 2023
44803da
Update PPP
ysl-28 Apr 10, 2023
1a24d73
Update PPP
ysl-28 Apr 10, 2023
13537e1
Fix checkstyle and javadoc
ysl-28 Apr 10, 2023
d3783ed
Merge branch 'master' of https://github.com/AY2223S2-CS2113-W12-3/tp
ysl-28 Apr 10, 2023
6105262
Merge pull request #284 from ysl-28/master
ysl-28 Apr 10, 2023
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ src/main/resources/docs/
*.iml
bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT
data/InventoryData.csv
data/AlertData.csv
17 changes: 17 additions & 0 deletions .gitignore.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# IDEA files
/.idea/
/out/
/*.iml

# Gradle build files
/.gradle/
/build/
src/main/resources/docs/

# MacOS custom attributes files created by Finder
.DS_Store
*.iml
bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT
73 changes: 14 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,19 @@
# Duke project template
![image](https://user-images.githubusercontent.com/7589432/229032917-7767f5fb-09af-4964-bb47-8f548893150c.png)
## About Project

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.
MagusStock is a Java command-line interface (CLI) application designed for inventory management. With MagusStock, you can perform CRUD operations on inventory items, generate history reports, and read/write inventory data in CSV format.

## Setting up in Intellij

Prerequisites: JDK 11 (use the exact version), update Intellij to the most recent version.
### Features
* Inventory management with CSV read/write + Autosave
* CRUD operations
* Inventory Management History Reports
* Documentation
* For more information on how to use MagusStock, please refer to the following documents:

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.
[User Guide](https://ay2223s2-cs2113-w12-3.github.io/tp/UserGuide.html)

## 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.
[Developer Guide](https://ay2223s2-cs2113-w12-3.github.io/tp/DeveloperGuide.html)
### About Us
This project is under the module CS2113 (Software Engineering & Object-Oriented Programming) that we are taking in the National University of Singapore
Please refer to the [About Us](AboutUs.md) document to learn more about our team members!
23 changes: 17 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ repositories {
mavenCentral()
}

compileJava.options.encoding = 'UTF-8'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
implementation 'org.jetbrains:annotations:24.0.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.9.2'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.9.2'


}

test {
Expand All @@ -29,18 +38,20 @@ test {
}

application {
mainClass = "seedu.duke.Duke"
mainClass = "seedu.duke.MagusStock"
}

shadowJar {
archiveBaseName = "duke"
archiveBaseName = "magusstock"
archiveClassifier = null
}

checkstyle {
toolVersion = '10.2'
}

run{
run {
standardInput = System.in
}
enableAssertions = true
assert true;
}
Loading