Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 1.02 KB

README.md

File metadata and controls

22 lines (20 loc) · 1.02 KB

NotesApp

This "NoteTaking" application helps create & save notes & retrieve it whenever required.

Dev Setup

  • Preferred editor - VS Code
  • run command npm install to install all node dependencies

RUN PROGRAM

This app takes four commands:
1.add
2.remove
3.list
4.read

add - This is used to add/create new notes to your file
remove - This is used to remove an existing note from the file
list- This is used to list all the title of the saved notes
read - This is used to read an existing note with a given title

Commands

  • node app.js add --title="utk" --body="utkarshmehta"
    - This will create a note with given title and body. It will be saved in a JSON format in a file named notes.json
  • node app.js remove --title="utk"
    - This is remove the note of the given title
  • node app.js list
    - This will list out all the existing/saved title(s) from the JSON file
  • node app.js read --title="utk"
    - This will print the body of the given title