Create a simple Contact App with Node.js.
- This application have 2 ways of use:
- Run automaticly question on
cmd
when add new contact - Run with custom command
- Run automaticly question on
- Auto create folder
./data
if not exist. - Auto create file
./data/contact.json
if not exist.
- Download this repository or clone this repository.
$ git clone https://github.com/nuflakbrr/contact-app.git
- Run
npm install
.
$ npm install
--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]
Contributors names and contact info
Naufal Akbar Nugroho
@kbrnugroho