Skip to content

A command line interface (CLI) note application built using Node.js. This application focuses on Node.js fundamentals

Notifications You must be signed in to change notification settings

patilankita79/NodeJS_NoteApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

NodeJS_NoteApplication

A command line interface (CLI) note application developed using Node.js. This application focuses on Node.js fundamentals.
The application involves CRUD operations where, user can add, delete, read and list all the notes from command line. If there are no notes generated in the application then first it creates a JSON file where the notes are appended.
Following command lists all the operations that can be performed in Note application

$ node app.js --help

Install dependencies

Run the following command to install dependencies in package.json

npm install

Dependencies

Third party NPM modules used in this application to fetch the input from the user

I have used Yargs

  • for the parsing of command line arguments
  • .command() is used to configure all the four commands that are used in this application, to set up description and help functionality
  • .help() -> Sets up Yarg to return useful information when user runs the program. Returns all the options available

--save flag is used to save the dependency in package.json
Run the following commands to save following dependencies

npm install lodash --save
npm install yargs --save

Running the application

Help Utility provided in the application

Help Uitlity for add command

Adding a note

Now, listing all the notes

To avoid duplication of titles in notes

Help Utility to read a note

Rading a note for the title passed

Help Utility to remove a note

Listing all the notes in application

Remove a note for the title passed

Now, listing all the notes to check if the notes are removed or not

About

A command line interface (CLI) note application built using Node.js. This application focuses on Node.js fundamentals

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published