Coder Social home page Coder Social logo

nodes-app's Introduction

nodes-app

ss

Basic nodejs app for taking notes. Using Yargs for our command line arguments and chalk for displaying useful information to the user.

Features

The app gives the ability to:

  • Add a note
  • Remove a note
  • Read a note
  • List all notes

How to use

First clone this repo, move into the directory and run npm install:

git clone https://github.com/shan5742/nodes-app.git
cd nodes-app
npm i

Adding a note

To add a note the program requires a keyword of add along with two arguments title and body in the form of command line arguments. First make sure you are in the corrected directory and run:

node app.js add --title="your note title" --body="your notes content"

Removing a note

To remove a note the program requires the keyword remove and one argument of title, so if we wanted to remove the note we created above the command would be:

node app.js remove --title="your note title"

Read a note

To read a specific note the program requires the keyword read and of course one argument - the title of the note you are looking to read. Command:

node app.js read --title="your note title"

List all notes

To see a list of all your notes (handy if you forgot the title of the note you want to read/delete) then you simply just need to use the keyword list:

node app.js list

Still to come

In it's current for this is a very simple application. I would like to add a few things to make it more functional and a few other things to give a better user experience.

Right now all the arguments and searches are case sensitive, so you need to use the correct casing for your titles when looking to read or delete, so I will be looking in the future to make this work regardless of case.

I'd also like the program to have one command to run, for example nodes add and then the user will be prompted for title and body via the command line. Same goes for the other features.

Screenshots

ss ss ss

nodes-app's People

Contributors

shan8851 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.