Create a simple Contact App with Node.js.
- This application have 2 ways of use:
- Run automaticly question on
cmdwhen add new contact - Run with custom command
- Run automaticly question on
- Auto create folder
./dataif not exist. - Auto create file
./data/contact.jsonif 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 --helpadd, 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 listdetail, 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