The first step to develop a basic app to handle notes is to create a directory to gather all the files required.
We are going to create a package.json with the command npm initAdditional, some packages as nodemon, lodash and yargs that are going to be used: npm install nodemon -g, npm install lodash –save,npm install yargs –save
Then, create three module files to add, list, read and remove files. To add:Now we can import the modules to index:
Now we can test the program by adding a title and body to a note:As well as the addingNote, the file ListingNote and ReadingNote are created:
This entry was posted in τεχνολογια :: Technology
. Bookmark the permalink