Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3b19ba1
Add Gradle support
May 24, 2020
a75fcee
build.gradle: Update version to 8.29
Aug 29, 2020
7a16622
Level-1
Cp-John Jan 21, 2021
ea64e59
Level-2
Cp-John Jan 21, 2021
e495edd
Level-3
Cp-John Jan 21, 2021
73e3146
Level-4
Cp-John Jan 21, 2021
fcc4ab3
Level-4
Cp-John Jan 21, 2021
303035e
Level-5
Cp-John Jan 21, 2021
0067f9d
Level-6
Cp-John Jan 21, 2021
8fc7617
some comment added
Cp-John Jan 21, 2021
39ffa63
Level-7
Cp-John Jan 29, 2021
4a0753b
Complete level 8
Cp-John Jan 30, 2021
8f2c0fe
Merge branch 'branch-Level-7'
Cp-John Jan 30, 2021
1544949
Standardize date format
Cp-John Jan 30, 2021
f3caea8
A-MoreOOP completed
Cp-John Jan 31, 2021
815dc30
Complete A-Packages
Cp-John Jan 31, 2021
fde4727
Add Junit tests
Cp-John Jan 31, 2021
d1a82f3
Add javadoc
Cp-John Jan 31, 2021
fcdd560
Follow the coding standard
Cp-John Jan 31, 2021
d99334b
Finish Level-9
Cp-John Jan 31, 2021
8f3229d
Create jar file
Cp-John Feb 1, 2021
17a87a7
Add varargs
Cp-John Feb 3, 2021
f1060fc
Add assertions
Cp-John Feb 10, 2021
6c910c4
Improve code quality
Cp-John Feb 10, 2021
86d417f
Merge remote-tracking branch 'origin/add-gradle-support'
Cp-John Feb 15, 2021
0bdf504
Add gradle
Cp-John Feb 15, 2021
3d5ec70
Complete GUI
Cp-John Feb 15, 2021
9ad3eb1
Delete unused package
Cp-John Feb 17, 2021
7dabba0
Complete better search and add comment
Cp-John Feb 17, 2021
863725e
Resize header image
Cp-John Feb 18, 2021
501e936
Change switch case statement format
Cp-John Feb 18, 2021
7963ef4
Merge branch 'master' into branch-A-CodeQuality
Cp-John Feb 18, 2021
7d300e3
Finish Ui design
Cp-John Feb 18, 2021
bd02cf9
Change indentation for switch case
Cp-John Feb 21, 2021
57ec9c8
Change the path of screenshot
Cp-John Feb 21, 2021
7096f31
Change the path of screenshot
Cp-John Feb 21, 2021
99365d5
Set theme jekyll-theme-cayman
Cp-John Feb 21, 2021
9dc0f28
Add user guide
Cp-John Feb 21, 2021
97e5396
Merge branch 'master' of https://github.com/Cp-John/ip
Cp-John Feb 21, 2021
03cde79
Format user guide
Cp-John Feb 21, 2021
599c846
Add jar file
Cp-John Feb 21, 2021
4c4b0b8
Add an assertion
Cp-John Feb 22, 2021
1f4a1b5
Merge pull request #3 from Cp-John/branch-A-Assertions
Cp-John Feb 22, 2021
8d54d93
Merge branch 'master' into branch-A-CodeQuality
Cp-John Feb 22, 2021
76d5460
Merge pull request #2 from Cp-John/branch-A-CodeQuality
Cp-John Feb 22, 2021
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Duke project template
# duke.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.

Expand All @@ -12,7 +12,7 @@ Prerequisites: JDK 11, update Intellij to the most recent version.
1. Select the project directory, and click `OK`.
1. If there are any further prompts, accept the defaults.
1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).
1. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()`. If the setup is correct, you should see something like the below:
1. After that, locate the `src/main/java/duke.Duke.java` file, right-click it, and choose `Run duke.Duke.main()`. If the setup is correct, you should see something like the below:
```
Hello from
____ _
Expand Down
61 changes: 61 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}

repositories {
mavenCentral()
}

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'
String javaFxVersion = '11'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'
}


test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"

showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}

application {
mainClassName = "duke.Launcher"
}

shadowJar {
archiveBaseName = "duke"
archiveClassifier = null
}

checkstyle {
toolVersion = '8.29'
}

run{
standardInput = System.in
}
3 changes: 3 additions & 0 deletions data/duke.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[T][X] homework
[D][ ] return book (by: Oct 15 2019)
[E][ ] project meeting (at: Oct 15 2019)
120 changes: 115 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,124 @@ Description of feature.

## Usage

### `Keyword` - Describe action

Describe action and its outcome.
### `list` - List all the tasks in the current task list

Example of usage:

`keyword (optional arguments)`
`list`

Expected outcome:

`_______________________________________________________`

`1.[T][X]assignment`

`2.[T][]homework`

`_______________________________________________________`

### `todo` - Add a task without any date/time attached to it

Example of usage:

`todo borrow book`

Expected outcome:

`_______________________________________________________`

`Got it. I've added this task:`

`[T][ ] borrow book`

`Now you have 5 tasks in the list.`

`______________________________________________________`

### `deadline` - Add a task with deadline (e.g. 2019-10-15) attached to it

Example of usage:

`deadline return book /by 2019-10-15`

Expected outcome:

`____________________________________________`

` Got it. I've added this task:`

` [D][] return book (by: Oct 15 2019)Now you have 4 tasks in the list`

`____________________________________________`

### `event` - Add a task with date (e.g. 2019-10-15) attached to it

Example of usage:

`event project meeting /at 2019-10-15`

Expected outcome:

`outcome`
`____________________________________________`

` Got it. I've added this task:`

` [E][] project meeting (by: Oct 15 2019)Now you have 5 tasks in the list`

`____________________________________________`

### `delete` - Delete a task from the list

Example of usage:

`list`

`_______________________________________________________`

` Here are the tasks in your list:`

` 1.[T][X] read book`

` 2.[D][X] return book (by: June 6th)`

` 3.[E][ ] project meeting (at: Aug 6th 2-4pm)`

` 4.[T][X] join sports club`

` 5.[T][ ] borrow book`

` _______________________________________________________`

`delete 3`

Expected outcome:

`_______________________________________________________`

` Noted. I've removed this task: `

` [E][ ] project meeting (at: Aug 6th 2-4pm)`

` Now you have 4 tasks in the list.`

` ______________________________________________________`

### `find` - Find a task by searching for a keyword

Example of usage:

`find book`

Expected outcome:

`_______________________________________________________`

` Here are the matching tasks in your list:`

` 1.[T][X] read book`

` 2.[D][X] return book (by: June 6th)`

`_______________________________________________________`


Binary file added docs/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading