Модуль 1. Основи Node.js
node index.js --action="list"
Parameter | Alias | Value | Role | Description | Screenshot (https://ibb.co/) |
---|---|---|---|---|---|
--action |
-a |
list |
choose action | Required | https://ibb.co/2d5pQgK |
node index.js --action="get" --id=5
Parameter | Alias | Value | Role | Description | Screenshot (https://ibb.co/) |
---|---|---|---|---|---|
--action |
-a |
get |
choose action | Required | https://ibb.co/JqVfYh3 |
--id |
-i |
user id |
user id | Required |
node index.js --action="add" --name="Mango" --email="[email protected]" --phone="322-22-22"
Parameter | Alias | Value | Role | Description | Screenshot (https://ibb.co/) |
---|---|---|---|---|---|
--action |
-a |
add |
choose action | Required | https://ibb.co/mNz6Tz7 |
--name |
-n |
user name |
user name | Required | |
--email |
-e |
user email |
user email | Required | |
--phone |
-p |
user phone |
user phone | Required |
node index.js --action="remove" --id=3
Parameter | Alias | Value | Role | Description | Screenshot (https://ibb.co/) |
---|---|---|---|---|---|
--action |
-a |
remove |
choose action | Required | https://ibb.co/0cm2bBG |
--id |
-i |
user id |
user id | Required |
Db itemses finally state screenshot https://ibb.co/2d5pQgK