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

[Bernard Wan De Yuan] iP #461

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d839859
Add Gradle support
May 24, 2020
f38a22a
Level-1
bernardwan Aug 20, 2021
b98c16f
Level-2
bernardwan Aug 20, 2021
feac61e
Level-3
bernardwan Aug 20, 2021
83381b8
Level-4
bernardwan Aug 20, 2021
3c1011c
Added automated text UI testing
bernardwan Aug 25, 2021
7551481
Implemented Level-5, updated test cases
bernardwan Aug 25, 2021
2565300
Implemented Level-6. updated tests
bernardwan Aug 25, 2021
5ff4233
Implemented Level-7
bernardwan Aug 26, 2021
0266c78
Implemented Level-8
bernardwan Aug 26, 2021
33921a6
Merge branch 'branch-Level-8'
bernardwan Aug 26, 2021
48d97f1
Updated tests
bernardwan Aug 26, 2021
09721a2
Resolved conflict errors
bernardwan Aug 26, 2021
e4d0342
Refactor code to make it more OOP
bernardwan Aug 27, 2021
c3e9b99
Organise into package
bernardwan Aug 28, 2021
6db07e9
Add Junit tests
bernardwan Aug 28, 2021
fe6833c
Create JAR File
bernardwan Aug 28, 2021
5f6bf33
Add Javadocs
bernardwan Aug 31, 2021
9dbf7dd
Tweak code to follow coding standard
bernardwan Aug 31, 2021
06609b4
Implement Level-9 Find feature
bernardwan Aug 31, 2021
d093898
Merge branch 'branch-A-CodingStandard'
bernardwan Aug 31, 2021
d2d6805
Merge branch 'branch-Level-9'
bernardwan Aug 31, 2021
bcefd1c
Fix minor javadocs errors
bernardwan Aug 31, 2021
679bfa8
Merge remote-tracking branch 'origin/add-gradle-support'
bernardwan Sep 3, 2021
341051c
Add Gradle to project
bernardwan Sep 4, 2021
5dcd832
Add ability to use checkstyle
bernardwan Sep 4, 2021
62293f6
Add GUI
bernardwan Sep 5, 2021
c786acd
Modify config for proper Gradle usage
bernardwan Sep 5, 2021
9d41498
Add Assert statements
bernardwan Sep 9, 2021
e710891
Check code for code quality and clean up code
bernardwan Sep 9, 2021
f787e9d
Merge pull request #1 from bernardwan/branch-A-Assertions
bernardwan Sep 9, 2021
879b551
Merge branch 'master' into branch-A-CodeQuality
bernardwan Sep 9, 2021
558ea60
Merge pull request #2 from bernardwan/branch-A-CodeQuality
bernardwan Sep 9, 2021
fceed2d
Implement B-DoWithinPeriodTasks
bernardwan Sep 9, 2021
fd12c10
Refactor code
bernardwan Sep 16, 2021
a57ca3c
Add User Guide
bernardwan Sep 16, 2021
d45e077
Rename boolean variable
bernardwan Sep 16, 2021
6e830cf
Improve GUI
bernardwan Sep 16, 2021
4714d9b
Handle some exceptions and change font
bernardwan Sep 17, 2021
0d11fb8
Update README.md
bernardwan Sep 17, 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
51 changes: 27 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# 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, update Intellij to the most recent version.

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
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
### DUKE

> “Your mind is for having ideas, not holding them.” – David Allen (source)

Hi this is my Duke program! It's

- _Fun_ 👍
- Easy to use
- text-based

Steps to use:

1. Download from [here](https://github.com/nus-cs2103-AY2122S1/ip/pull/461)
2. Run
3. **Use!**

Features:

- [x] Managing tasks
- [ ] GUI

Sample code `main` :
```java
public static void main(String[] args) {
new Duke().run();
}
```
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
}
Loading