Add Note - piotrpdev/notes-app GitHub Wiki
Instructions
To add a note to the system, select option 1 in the menu and fill out details about the note.
You will be asked for the following:
- Title - The title of the note.
- Priority - The priority of the note, where 1 is the lowest and 5 is the highest priority (inclusive).
- Category - The category of the note.
- isNoteArchived - A flag indicating whether the note is archived or not.
These will be filled out automatically in the background:
- updatedAt - The date and time the note was last updated, defaulting to the current date and time.
- createdAt - The date and time the note was created, defaulting to the current date and time.
Outcomes
If everything works successfully, you will be given a confirmation and shown the note.
If something goes wrong (when you enter an invalid value for example), you will be prompted to enter a correct value.
See also
If you want to store and/or retrieve your notes, see the wiki section on "Persistence".