1.2.0 • Published 4 years ago
@fellowjoel/notes v1.2.0
LAB - Class 01
Notes
Author: Joel Watson
Links and Resources
Setup
npm install
How to run
Example of adding a note to the database (must use -a or --add)
notes --add "Hello, I am an example note"
notes --add "Hello, I am an example note" --categories "school, examples" // categories optional
Example of listing the notes from the database (must use -l or --list)
notes --list // gets all notes
notes --list school // gets notes with "school" category
Example of updating a note in the database (must use -u or --update)
notes --update <note-uuid> --note "I've been updated" --categories "school, examples" // replace note-uuid with actual uuid from mongo
Example of adding a note to the database (must use -d or --delete)
notes --delete <note-uuid>
Tests
npm test
UML