Skip to the content.

User Guide

DukePro is a desktop app for managing tasks, optimized for use via a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI).

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)
  2. Open the project into Intellij as follows:
    1. Click Open.
    2. Select the project directory, and click OK.
    3. If there are any further prompts, accept the defaults.
  3. Configure the project to use JDK 11 (not other versions) as explained in here.
    In the same dialog, set the Project language level field to the SDK default option.
  4. After that, locate the src/main/java/Launcher.java file, right-click it, and choose Run Launcher.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:
    Image of  Ui_launcher

Quick Start

  1. Ensure you have Java 11 or above installed in your computer.
  2. Download the latest duke.jar from here.
  3. Copy the file to the folder you want to use as the home folder for your DukePro.
  4. Open Command Prompt and type java -jar duke.jar to start the app.
  5. Type the command in the input box and press Enter to execute it.
    Some example commands you can try:
    • todo borrow book: Add todo task borrow book to the task list.
    • event project meeting /at 2/12/2021 1700: Add event project meeting (at Dec 2 2021 1700) to the task list.
    • deadline return book /by 2/12/2021 1800: Add deadline return book (by Dec 2 2021 1800) to the task list.
    • list: List all tasks.
    • done 2: Mark the 2nd task as done.
    • delete 2: Delete the 2nd task in the list.
    • find book: Search the task with keyword of book.
    • viewschedules 2/12/2021 : Displays the schedule for the specified date Dec 2 2021.
    • bye: Exits the app.

Features

Add todo: todo

Adds a todo task to the DukePro task list.

Format: todo DESCRIPTION

Example:

Adding an event: event

Adds an event to the DukePro task list.

Format: event DESCRIPTION /at date/month/year time

Example:

Adding a deadline: deadline

Adds a deadline to the DukePro task list.

Format: deadline DESCRIPTION /by date/month/year time

Example:

Show tasks: list

To show all the tasks in the list.

Format: list

Example:

Mark as done: done

To mark a task as done.

Format: done INDEX

Example:

Delete a task: delete

To delete a task in the list.

Format: delete INDEX

Example:

Search tasks: find

Search the task with the keyword.

Format: find KEYWORD

Example:

View Schedules: viewschedules

Displays the schedule for the specified date.

Format: viewschedules dd/mm/yyy

Example:

Exiting the program: bye

Exits the program.

Format: bye

Example:

FAQ

Q: How do I transfer my data to another Computer?

A: Without running the program, just copy the tasks.txt in the data folder. To run and show the data in another computer, you need to follow the Quick Start above, and copy the tasks.txt to the data folder.

Command Summary

Action Format, Examples
Todo todo DESCRIPTION e.g.,todo borrow book
Event event DESCRIPTION /at date/month/year time e.g., event project meeting /at 2/12/2021 1700
Deadline deadline DESCRIPTION /by date/month/year time e.g., deadline return book /by 2/12/2021 1800
List list e.g., list
Done done INDEX e.g., done 2
Delete delete INDEX e.g., delete 2
Find find KEYWORD e.g., find book
View schedules viewschedules dd/mm/yyy e.g., viewschedules 2/12/2021
Bye bye e.g., bye