Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
556af3f
Add Gradle support
May 24, 2020
98b0b8b
Level 1 complete
Jan 19, 2023
b286d41
Level 2 complete
Jan 19, 2023
29e0afb
Level 2 complete
Jan 19, 2023
1f85f96
Level 3 complete
Jan 19, 2023
0e983da
Level 4 complete
Jan 20, 2023
9039f8e
Level 5 complete
Jan 20, 2023
58c0f95
Level 5 complete
Jan 20, 2023
0c4a800
Level 6 complete
Jan 20, 2023
a3d3477
Complete Level 7
Feb 1, 2023
9b818a7
Complete Level 8
Feb 3, 2023
f6fda6f
Merge branch 'branch-level-7'
Feb 3, 2023
24786a7
Complete Level 8
Feb 3, 2023
4f67fd1
Resolve conflict between level 8 and master
Feb 3, 2023
cfb9c77
Complete A-MoreOOP
Feb 4, 2023
b678e36
Complete A-Packages
Feb 4, 2023
e7dbf2d
Merge branch 'add-gradle-support'
Feb 4, 2023
a5dd3ce
Complete A-Gradle
Feb 6, 2023
b16ac23
Complete A-JUnit
Feb 6, 2023
04c4fe7
Complete A-Jar
Feb 6, 2023
e18d496
Complete A-JavaDoc
Feb 6, 2023
217c71b
Complete A-CodingStandard
Feb 6, 2023
9846241
Complete Level-9
Feb 6, 2023
0f0592c
Complete level 10
Feb 19, 2023
7a5165e
Complete level 10
Feb 19, 2023
35f3de5
Complete A-Varargs
Feb 19, 2023
a3698bd
Add images
Feb 20, 2023
94aa96a
Complete A-Assertions
Feb 20, 2023
6fdfd7e
Complete A-CodeQuality
Feb 20, 2023
b0a88ed
Merge pull request #2 from Zhongli5712/branch-A-Assertions
Zhongli5712 Feb 20, 2023
10e8b1e
Merge branch 'master' into branch-A-CodeQuality
Feb 20, 2023
9ec8791
Merge pull request #3 from Zhongli5712/branch-A-CodeQuality
Zhongli5712 Feb 20, 2023
a352bac
Complete BCD-Exetension
Feb 20, 2023
c5c2081
Merge pull request #4 from Zhongli5712/branch-BCD-Extension
Zhongli5712 Feb 20, 2023
4ba6b4d
Fix some error
Feb 20, 2023
7db313a
Complete A-UserGuide
Feb 20, 2023
2e7d8bc
Trigger rebuild
Feb 20, 2023
68dc253
Fix Readme
Feb 20, 2023
f4f17f8
Make Duke compatible with Linux
Feb 28, 2023
4a64ff0
Update Readme.md
Mar 2, 2023
1a8a463
Update README.md
Zhongli5712 Mar 2, 2023
4692bc5
Update README.md
Zhongli5712 Mar 7, 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
29 changes: 9 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
# Duke project template
# Welcome to Duke
## A Personal Assistant Chatbot that helps a person to keep track of various tasks

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.
![](https://zhongli5712.github.io/ip/Ui.png)

## Setting up in Intellij
> User interface example

Prerequisites: JDK 11, update Intellij to the most recent version.
You can view the user guide [here](https://zhongli5712.github.io/ip/).

1. Open Intellij (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project first)
1. Open the project into Intellij as follows:
1. Click `Open`.
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).<br>
In the same dialog, set the **Project language level** field to the `SDK default` option.
3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
```
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
You can download jar file in the latest release and run the file by command ```java -jar duke.jar```.

## Acknowledgement
This project is referencing resources on the Duke project created by the [SE-EDU Initiative](https://se-education.org/)
69 changes: 69 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'org.openjfx.javafxplugin' version '0.0.13'
}

repositories {
mavenCentral()
}
/*
javafx {
version = "19"
modules = [ 'javafx.controls' ]
}
*/
checkstyle {
toolVersion = '10.2'
ignoreFailures = true
}



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 = true
}
}

application {
mainClassName = "duke.Duke"
}

shadowJar {
archiveBaseName = "duke"
archiveClassifier = null
}

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