ip


Project maintained by galvinleow Hosted on GitHub Pages — Theme by mattgraham

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 dialog first)
  2. Set up the correct JDK version, as follows:
    1. Click Configure > Structure for New Projects and then Project Settings > Project > Project SDK
    2. If JDK 11 is listed in the drop down, select it. If it is not, click New... and select the directory where you installed JDK 11
    3. Click OK
  3. Import the project into Intellij as follows:
    1. Click Open or Import.
    2. Select the project directory, and click OK
    3. If there are any further prompts, accept the defaults.
  4. After the importing is complete, locate the src/main/java/duke.Launcher.java file, right-click it, and choose Run Launcher.main(). If the setup is correct, you should see something like the below:
     ____        _        
    |  _ \ _   _| | _____ 
    | | | | | | | |/ / _ \
    | |_| | |_| |   <  __/
    |____/ \__,_|_|\_\___|
       
    Hello! I'm Duke
    What can I do for you?
    1. list
    2. done...{item number}
    3. todo...{description}
    4. deadline...{description}.../by...{dd/mm/yyyy}...{hhmm}
        e.g. deadline return book /by 1/12/2020 1800
    5. event...{description}.../at...{dd/mm/yyyy}...{hhmm}-{hhmm}
        e.g. event meeting /at 1/12/2020 1800-1900
    6. delete...{item number}
    7. find...{item to find}
    8. update...{item number}.../{desc OR date}...{value}
    9. bye
    

Features

In order for easy of use, the menu displayed to users was design to be simple.

Notes to reading menu:

  1. Replace {replace_me} with relevant data. The data required is defined in curly braces.
    1.1 OR inside the curly braces means either of the elements not both. e.g. For command 8. $ update 2 /desc New description
  2. ... displayed on the menu means it requires a space. 3 dots equals 1 space.

To exit programme just click the cross on the top right of the dialog box.

Listing all Task: list

Shows a list of task (Deadline, Event, ToDo) that is recorded in Duke.
Format: list

Change task to complete: done

Change the status of not completed for a particular task to complete.
Format: done...{item_number}

Example: done 2

Create a todo task: todo

Create a todo task with a description.
Format: todo...{description}

Example: `todo iP Meeting

Create a deadline task: deadline

Create a deadline task with a description, deadline date and time.
Format: deadline...{description}...\by...{dd/mm/yyyy}...{hhmm}

Example:

Create an event task: event

Create an event task with a description, start and end date and time.
Format: event...{description}...\at...{dd/mm/yyyy}...{hhmm}-{hhmm}

Example:

Delete a task: delete

Remove a task from Duke task list. Format: delete...{item_number}

Example: delete 2

Find a task: find

Find item based on the description.
Format: find...{find_value}

Update task details update

Update task description or date (if applicable).
Format: update...{item_number}.../{desc OR date}...{value}

Example:

Exiting application

To exit application click the cross at the top right-hand corner of the dialog box.

Saving the data

Duke application saved the changes automatically after each action. There is no need to save manually.