Hi there! Welcome to our user guide for Student Contact Manager, a student-designed application made for busy university students who are in need of managing their daily activities. It contains many features that help with the management of contacts and events, such as adding, deleting, editing, viewing, and finding of contacts, as well as adding, deleting, editing, viewing, and listing ongoing events. The application also helps with importing and exporting of contacts for better portability.
This user guide aims to aid you in your usage of our application, as well as to explore its various features that can help you manage your own daily activities. To navigate the application, you can use the table of contents placed below. There are also links posted throughout the application that lead back to the table of contents to ease navigability.
Ensure you have Java 11
or above installed in your computer.
java -version
.Download the latest scm.jar
from here.
Copy the file to the folder you want to use as the home folder for Student Contact Manager.
Open a command terminal, change the directory (cd
) into the folder you put the .jar
file in, and use the java -jar scm.jar
command to run the application.
A GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.
Type the command you want to run inside the command box and press Enter
to execute it. As an example, typing help
and pressing Enter
will open the help window.
There are some example commands you can try:
list
: Lists all contacts.
add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01
: Adds a contact named John Doe
to the Student Contact Manager.
delete 3
: Deletes the 3rd contact shown in the current list.
clear
: Deletes all contacts.
exit
: Exits the app.
Refer to the Features section below for the complete list of commands as of each command.
Notes about the command format and application:
Words in UPPER_CASE
are the parameters to be supplied by the user.
e.g. in add n/NAME
, NAME
is a parameter which can be used as add n/John Doe
.
Items in square brackets are optional.
e.g n/NAME [t/TAG]
can be used as n/John Doe t/friend
or as n/John Doe
.
Items with ...
after them can be used multiple times, including zero times.
e.g. [t/TAG] ...
can be used as (i.e., 0 times),
t/friend
, t/friend t/family
, etc.
Parameters can be in any order.
e.g. if the command specifies n/NAME p/PHONE_NUMBER
, p/PHONE_NUMBER n/NAME
is also acceptable.
Extraneous parameters for commands that do not take in parameters (such as help
, list
, exit
and clear
) will be ignored.
e.g. if the command specifies help 123
, it will be interpreted as help
.
If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
The application is only able to work properly using ASCII characters (i.e., standard characters found on an English keyboard). The use of other character sets is currently unsupported.
All commands are case-sensitive. As an example, listing contacts requires the list
command (with all lowercase characters). Variants such as LIST
or List
will not be accepted by the application.
Click here to go back to the top of this user guide.
help
Shows a message explaining how to access the help page. The help page is located at https://ay2324s2-cs2103t-w08-3.github.io/tp/UserGuide.html.
Format: help
Click here to go back to the top of this user guide.
theme
Changes the theme of the application. Useful if you wish to change the appearance of the application. The application currently supports light
and dark
themes.
Below is a picture of how the light theme is supposed to look like:
Format: theme THEME_NAME
Examples:
theme light
theme dark
Click here to go back to the top of this user guide.
add
Adds a person to the Student Contact Manager. Useful if you need to store a person's details for recording purposes. There are various details that must be added, including name, phone number, email, and address. Tags are optional. The name must be alphanumeric (i.e., no punctuations are allowed) and can contain spaces after the first character.
Format: add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG] ...
Tip: A person can have any number of tags (including 0)
Examples:
add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01
add n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison p/1234567 t/criminal
Click here to go back to the top of this user guide.
list
Shows a list of all persons in the contact manager. Useful if you need to view all contacts that you have recorded.
Format: list
Click here to go back to the top of this user guide.
edit
Edits an existing person in the contact manager. Useful if you need to edit a person's details to be updated, or if you have inputted a wrong field. Existing values will be updated to the input values.
Format: edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG] ...
INDEX
, whereINDEX
refers to the index number shown in the displayed person list.INDEX
must be a positive integer, such as 1, 2, 3, ..., found as an index for the displayed person list.NAME
, PHONE
, EMAIL
, ADDRESS
or TAG
needs to be provided.t/
without
specifying any tags after it.Examples:
edit 1 p/91234567 e/johndoe@example.com
Edits the phone number and email address of the 1st person to be 91234567
and johndoe@example.com
respectively.edit 2 n/Betsy Crower t/
Edits the name of the 2nd person to be Betsy Crower
and clears all existing tags. This is because the new tag list is empty.Click here to go back to the top of this user guide.
find
Finds persons whose names, addresses, or tags contain any of the given keywords. Useful if you need to find a certain contact's details without going through the entire list of contacts.
Format: find [n/NAME] [a/ADDRESS] [t/TAG]
find
needs to have at least one of n/NAME
, a/ADDRESS
, or t/TAG
to run.hans
will match Hans
Hans Bo
will match Bo Hans
Han
will not match Hans
OR
search).
Hans Bo
will return Hans Gruber
, Bo Yang
Examples:
find n/John
returns john
and John Doe
find n/alex david
returns Alex Yeoh
, David Li
find n/alex david t/friends
will only return Alex Yeoh
.find a/Serangoon
will return Bernice Yu
and David Li
.Click here to go back to the top of this user guide.
find_and_export
Exports the users that are filtered by a tag and other optional parameters. Useful if you want to transfer data regarding groups of people from one device to another. Filenames can only be alphanumeric with either .csv
or .json
extensions.
Format: find_and_export TAG [n/NAME] [a/ADDRESS] [f/FILENAME]
TAG
needs to be a tag.NAME
needs to be a substring of a person's name.ADDRESS
needs to be a substring of a person's address.FILENAME
needs to be a valid filename, and can only have alphanumeric characters.Examples:
find_and_export cs2103t
find_and_export cs2103t n/john a/olive street 42 f/output1.json
find_and_export cs2103t n/john a/olive street 42 f/output1.csv
Tip: FILENAME
is optional. If provided, it has to be a valid filename with a .json
or .csv
extension.
Click here to go back to the top of this user guide.
import
Imports contact details from a specified CSV or JSON file. Useful if you have many contacts that you wish to add in one go. Filenames can only be alphanumeric with either .csv
or .json
extensions.
Format: import f/FILENAME_1 [f/FILENAME_2] [f/FILENAME_3] ...
FILENAME_n
needs to be a valid filename that is found in the ./data/
directoryExamples:
import f/export.json
import f/contactsExport.csv
import f/contactsExport1.json f/contacts_export2.csv
Click here to go back to the top of this user guide.
delete
Deletes the specified person from the contact manager. Useful if you wish to remove contacts that you no longer need.
Format: delete INDEX
INDEX
.Examples:
list
followed by delete 2
deletes the 2nd person in the contact manager.find n/Betsy
followed by delete 1
deletes the 1st person in the results of the find
command.Click here to go back to the top of this user guide.
clear
Clears all contact entries from the contact manager. Useful to clean up contacts if all of them are no longer needed.
Format: clear
Click here to go back to the top of this user guide.
add_schedule
Adds the schedule to the end of the list. Useful for recording details about events that occur. The schedule title and description must be alphanumeric and can contain spaces after the first character.
Format: add_schedule title/TITLE d/DESCRIPTION start/START_DATETIME end/END_DATETIME
TITLE
and DESCRIPTION
can contain alphanumeric characters, spaces, and punctuations.START_DATETIME
and END_DATETIME
need to be in YYYY-MM-DD HH:mm
format.
YYYY
refers to the year (in 4-digit format).MM
refers to the month (in 2-digit format). As an example, March would be translated to 03
.DD
refers to the date (in 2-digit format).HH
refers to the hour (in 24-hour and 2-digit format).mm
refers to the minute (in 2-digit format).2024-03-05 16:00
.Examples:
add_schedule title/Meeting d/CS2103T start/2024-04-13 21:00 end/2024-04-13 22:00
add_schedule title/Internship Interview @Google d/Google Interview start/2024-04-13 14:00 end/2024-04-13 15:00
Click here to go back to the top of this user guide.
edit_schedule
Edits an existing schedule in the schedule list. Useful if you wish to edit a certain schedule's description or timings.
Format: edit_schedule INDEX [title/TITLE] [d/DESCRIPTION] [start/START_DATETIME] [end/END_DATETIME]
INDEX
, where INDEX
refers to the index number shown in the displayed schedule list.INDEX
has to be a positive integer that is found as an index for the schedule.TITLE
, DESCRIPTION
, START_DATETIME
or END_DATETIME
has to be provided for the command to run.TITLE
and DESCRIPTION
must be alphanumeric.START_DATETIME
and END_DATETIME
must be in YYYY-MM-DD HH:mm
format and must be valid datetimes.Examples:
edit_schedule 1 title/Project meeting
Edits the title of the 1st schedule to be Project meeting
.edit_schedule 2 d/Project meeting start/2024-04-13 21:00 end/2024-04-13 22:00
Edits the description, start datetime, and end datetime of the 2nd schedule.Click here to go back to the top of this user guide.
list_schedule
Lists all the events currently available. Useful if you wish to view all the events that are in the database.
Format: list_schedule
Click here to go back to the top of this user guide.
list_ongoing_schedule
Lists all the events that are currently ongoing. Useful if you wish to view all the events that are currently ongoing.
Format: list_ongoing_schedule
Click here to go back to the top of this user guide.
find_schedule
Finds all events that match the given attributes. Useful if you wish to find events that match certain criteria.
Format: find_schedule [title/TITLE] [d/DESCRIPTION] [before/BEFORE_DATETIME] [after/AFTER_DATETIME] [during/DURING_DATETIME]
find_schedule
needs to have at least one of TITLE
, DESCRIPTION
, BEFORE_DATETIME
, AFTER_DATETIME
or DURING_DATETIME
to run.TITLE
and DESCRIPTION
:
Meeting
will match meeting
.Meeting Project
will match Project Meeting
.Meet
will not match Meeting
OR
search).
Meeting Project
will be matched by Zoom Meeting
, Coding Project
.BEFORE_DATETIME
, AFTER_DATETIME
and DURING_DATETIME
:
YYYY-MM-DD HH:mm
format.AND
search).
before/2021-10-10 12:00 after/2021-10-10 10:00
will return schedules that are between 10:00
and 12:00
on 2021-10-10
.BEFORE_DATETIME
attribute is matched if the schedule ends on or before the given datetime.AFTER_DATETIME
attribute is matched if the schedule starts on or after the given datetime.DURING_DATETIME
attribute is matched if the given datetime is between the start datetime and end datetime of the schedule, inclusive.Examples:
find_schedule title/Meeting
returns all schedules with the title Meeting
.find_schedule before/2024-04-13 21:00 after/2024-04-13 20:00
returns all schedules that are between 20:00
and 21:00
on 2024-04-13
.Click here to go back to the top of this user guide.
delete_schedule
Deletes the event at the given index. Useful if you wish to delete an event that is no longer needed.
Format: delete_schedule INDEX
INDEX
must be a positive integer and not greater than the number of schedules in the displayed schedule list.Click here to go back to the top of this user guide.
clear_schedule
Clears all events from the schedule list. Useful if you wish to clear all events that are no longer needed.
Format: clear_schedule
Click here to go back to the top of this user guide.
calendar_view
Shows your schedule for the month in a pop-up window. Useful to see an overall view of schedules in the month.
Format: calendar_view
Click here to go back to the top of this user guide.
exit
Exits the program.
Format: exit
Click here to go back to the top of this user guide.
Student Contact Manager data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
Click here to go back to the top of this user guide.
Student Contact Manager data are saved automatically as a JSON file [JAR file location]/data/addressbook.json
. Advanced users are welcome to update data directly by editing that data file.
Caution:
If your changes to the data file makes its format invalid, Student Contact Manager will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.
Furthermore, certain edits can cause Student Contact Manager to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
Click here to go back to the top of this user guide.
Q: How do I transfer my data to another computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous Student Contact Manager home folder.
Click here to go back to the top of this user guide.
preferences.json
file created by the application before running the application again.Click here to go back to the top of this user guide.
Action | Format, Examples |
---|---|
Add Person | add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]... e.g., add n/James Ho p/22224444 e/jamesho@example.com a/123, Clementi Rd, 1234665 t/friend t/colleague |
Clear Persons | clear |
Delete Person | delete INDEX e.g., delete 3 |
Edit Person | edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG] ... e.g., edit 2 n/James Lee e/jameslee@example.com |
Find Persons | find [n/NAME] [a/ADDRESS] [t/TAG] e.g., find n/James Jake |
List Persons | list |
Help | help |
Theme | theme e.g., theme light |
Find and Export to File | find_and_export TAG [n/NAME] [a/ADDRESS] [f/FILENAME] e.g., find_and_export friends |
Import from File | import f/FILENAME_1 [f/FILENAME_2] [f/FILENAME_3] ... e.g., import f/export_file.json |
Add Schedule | add_schedule title/TITLE d/DESCRIPTION start/START_DATETIME end/END_DATETIME e.g., add_schedule title/Meeting d/Project Meeting start/2024-03-10 16:00 end/2024-03-10 18:00 |
Clear Schedules | clear_schedule |
Delete Schedule | delete_schedule INDEX e.g., delete_schedule 1 |
Edit Schedule | edit_schedule INDEX [title/TITLE] [d/DESCRIPTION] [start/START_DATETIME] [end/END_DATETIME] e.g., edit_schedule 1 title/Project meeting |
Find Schedules | find_schedule [title/TITLE] [d/DESCRIPTION] [before/BEFORE_DATETIME] [after/AFTER_DATETIME] [during/DURING_DATETIME] e.g., find_schedule title/Meeting |
List Schedules | list_schedule |
List Ongoing Schedule | list_ongoing_schedule |
Calendar View | calendar_view |
Click here to go back to the top of this user guide.