-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
47 lines (34 loc) · 1.3 KB
/
README
File metadata and controls
47 lines (34 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Steps to run the Notes Application:
******************************************************************************************************
If you haven't installed nodejs or npm I would recommend to follow the instructions in the below url.
https://nodejs.org/en/download/
Before executing the files, list of packages used:
node v8.9.4
lodash 4.17.4
yargs 4.7.1
npm 5.6.0
There is a possibility of error if you have different versions.
******************************************************************************************************
If you are not in the notes-node folder,
cd notes-node/
npm install
node app.js --help
// To add a note
node app.js add --title="some title" --body="Some body"
(or) node app.js add -t "some title" -b "Some body"
// To read a note
node app.js read --title="some title"
(or) node app.js read -t "some title"
// To list all notes
node app.js list
// To remove a note
node app.js remove --title="some title"
(or) node app.js remove -t "some title"
The saved data could be seen in notes-data.json
To run /playground/arrow-function.js
node playground/arrow-function.js
To run /playground/debugging.js in chrome
node --inspect-brk playground/debugging.js
open google chrome and type chrome://inspect
To run /playground/debugging.js in command line
node inspect playground/debugging.js