This product is not meant for end-users and therefore there is no user-friendly installer. Please refer to the Setting up section to learn how to set up the project.
Using IntelliJ
-
Find the project in the
Project Explorer
(usually located at the left side)-
If the
Project Explorer
is not visible, press ALT+1 for Windows/Linux, CMD+1 for macOS to open theProject Explorer
tab
-
-
Go to the
src
folder and locate theAddressBook
file -
Right click the file and select
Run AddressBook.main()
-
The program now should run on the
Console
(usually located at the bottom side) -
Now you can interact with the program through the
Console
Using Command Line
-
'Build' the project using IntelliJ (
Build
→Build Project
) -
Open the
Terminal
/Command Prompt
. Note: You can open a terminal inside Intellij too (View
→Tool Windows
→Terminal
) -
cd
into the project’sout\production\addressbook-level1
directory. Note: That is the where Intellij puts its compiled class files -
Type
java seedu.addressbook.AddressBook
, then Enter to execute -
Now you can interact with the program through the CLI
Adds a person to the address book.
Format: add NAME p/PHONE_NUMBER e/EMAIL
ℹ️
|
Words in |
Examples:
-
add John Doe p/98765432 e/johnd@gmail.com
-
add Betsy Crowe e/bencrowe@gmail.com p/1234567
Shows a list of persons, as an indexed list, in the order they were added to the address book,
oldest first.
Format: list
Finds persons that match given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
ℹ️
|
The search is case sensitive, the order of the keywords does not matter, only the name is searched,
and persons matching at least one keyword will be returned (i.e. |
Examples:
-
find John
ReturnsJohn Doe
but notjohn
-
find Betsy Tim John
Returns any person having namesBetsy
,Tim
, orJohn
Deletes the specified version from the address book.
Format: delete INDEX
ℹ️
|
The index refers to the index numbers shown in the most recent listing. |
Examples:
-
list
delete 2
Deletes the 2nd person in the address book. -
find Betsy
delete 1
Deletes the 1st person in the results of thefind
command.
Address book data are saved in the hard disk automatically after any command that changes the data.
There is no need to save manually.
Address book data are saved in a file called addressbook.txt
in the project root folder.
You can change the location by specifying the file path as a program argument.
Example:
-
java seedu.addressbook.AddressBook mydata.txt
-
java seedu.addressbook.AddressBook myFolder/mydata.txt
ℹ️
|
The file path must contain a valid file name and a valid parent directory. |
ℹ️
|
When running the program inside IntelliJ, there is a way to set command line parameters before running the program. |