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

[Gibson0918] IP #375

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
556af3f
Add Gradle support
May 24, 2020
d2246c4
Add Level 1. Greet, Echo, Exit feature
Gibson0918 Jan 31, 2023
28b9930
Level 2 Completed
Gibson0918 Jan 31, 2023
75b6c9e
Level 3 done
Gibson0918 Jan 31, 2023
27b9c65
level 4 completed
Gibson0918 Feb 1, 2023
a008a30
Update Duke.java
Gibson0918 Feb 1, 2023
7f54de7
Completed Duke's Automated Text UI testing
Gibson0918 Feb 1, 2023
f43cdd7
Level 5 Completed.
Gibson0918 Feb 1, 2023
7e981d9
Level 6 Completed
Gibson0918 Feb 1, 2023
ee4a824
Added Enumerations
Gibson0918 Feb 1, 2023
44bf9f2
Update Duke.java
Gibson0918 Feb 1, 2023
038d559
Delete unnecessary files
Gibson0918 Feb 1, 2023
cdbfde3
Level 7 Completed
Gibson0918 Feb 1, 2023
9e0df04
Level 8 Completed
Gibson0918 Feb 1, 2023
33c6108
Merge branch 'branch-Level-8'
Gibson0918 Feb 1, 2023
6b26a8e
Refactor Duke to use more OOP
Gibson0918 Feb 2, 2023
3893500
Merge remote-tracking branch 'upstream/add-gradle-support'
Gibson0918 Feb 2, 2023
a8d7d89
Merge remote-tracking branch 'origin/add-gradle-support'
Gibson0918 Feb 3, 2023
26a98f0
Fixed bugs related to datetime and organize duke into packages
Gibson0918 Feb 4, 2023
c722460
add Gradle to Duke
Gibson0918 Feb 4, 2023
dcb5baf
Added JUnit tests for Duke
Gibson0918 Feb 5, 2023
4dc52da
Merge branch 'master' of https://github.com/Gibson0918/ip
Gibson0918 Feb 6, 2023
1756cea
Release duke to the wild
Gibson0918 Feb 6, 2023
391e222
Added Java Docs to Duke
Gibson0918 Feb 7, 2023
ca66669
Added StringBuilder class to Duke
Gibson0918 Feb 7, 2023
fc417a2
Completed Level 9
Gibson0918 Feb 7, 2023
818d54e
Tweak Duke's code
Gibson0918 Feb 7, 2023
451fc56
Level 10 Completed
Gibson0918 Feb 8, 2023
6a11a02
Remove commented lines
Gibson0918 Feb 8, 2023
9b4f6d8
Added more Java Docs
Gibson0918 Feb 9, 2023
cbb24a9
Improve Duke's code quality
Gibson0918 Feb 10, 2023
cad9985
Update README.md
Gibson0918 Feb 13, 2023
486c91d
Add Update feature to Duke
Gibson0918 Feb 14, 2023
77e726e
Updated GUI and added set method to tasklist
Gibson0918 Feb 14, 2023
f94e91b
Added Assertions to Duke
Gibson0918 Feb 14, 2023
7d857d1
Merge pull request #2 from Gibson0918/branch-A-Assertions
Gibson0918 Feb 14, 2023
18c5321
Update README.md
Gibson0918 Feb 15, 2023
e2a6d89
Fixed some bugs relating to DateTime format and Duke exit command
Gibson0918 Feb 15, 2023
14367ac
Merge branch 'master' of https://github.com/Gibson0918/ip
Gibson0918 Feb 15, 2023
5954700
Added Ui image for docs
Gibson0918 Feb 15, 2023
b272b25
Clean up code for checkstyle
Gibson0918 Feb 17, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT
duke.txt
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# Duke project template
## Duke

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.
> “Your mind is for having ideas, not holding them.” – David Allen ([source](https://dansilvestre.com/productivity-quotes))

## Setting up in Intellij
Duke is a simple reminder app that helps you to remember things you need to do. It's,
- text-based
- easy to learn
- ~FAST~ *SUPER FAST* to use

Prerequisites: JDK 11, update Intellij to the most recent version.
All you need to do is,
1. download it from [here](https://github.com/Gibson0918/ip/releases).
2. double-click it.
3. add your tasks.
4. let it manage your tasks for you 😁

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
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
And it is **FREE**!

Features:
- [x] Adding ToDo task
- [x] Adding task with deadline
- [x] Adding Event with deadline

if you are a Java programmer, you can use it to practice Java too. Here's the main method:
```public class Launcher {
public static void main(String[] args) {
Application.launch(Main.class, args);
}
}
```
62 changes: 62 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'checkstyle'
}

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
}

run{
standardInput = System.in
enableAssertions = true
}

checkstyle {
toolVersion = '10.2'
}
Loading