Skip to content

nuflakbrr/contact-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Contact App with Node.js

Create a simple Contact App with Node.js.

Feature

  • This application have 2 ways of use:
    • Run automaticly question on cmd when add new contact
    • Run with custom command
  • Auto create folder ./data if not exist.
  • Auto create file ./data/contact.json if not exist.

Getting Started

  1. Download this repository or clone this repository.
    $ git clone https://github.com/nuflakbrr/contact-app.git
  1. Run npm install.
    $ npm install

Commands

--help, to show all commands.

    $ node app --help

add, to add new contact. In this case, for email is optional to input.

    $ node app add --name=[name] --phoneNum=[phoneNum] --email[email]

list, to show all contact.

    $ node app list

detail, to show detail of contact by name.

    $ node app detail --name=[name]

delete, to delete a contact by name.

    $ node app delete --name=[name]

Authors

Contributors names and contact info

Naufal Akbar Nugroho
@kbrnugroho

About

Simple Contact App with Node.js CLI

Topics

Resources

Stars

Watchers

Forks