This is a sample project that loosely follows the tutorial listed here - https://www.udemy.com/the-complete-nodejs-developer-course-2/
I say loosely as I will probably augment it quite a bit with other things as I go.
Node Package Manager for the various libraries / dependencies used and their respective info listed below.
NPM General Info - The node_modules folder can be added to the .gitignore as it is generated code. To add it back in, simply use "npm install" @ the terminal and it will re-generate the code
Used to auto restart project once changes are detected to avoid having it be run constantly from command line.
npm install nodemon -g
The "-g" argument is short for "Global" and installs as a global utility on the machine itself as opposed to your project (run it from terminal)
To run the application / script with Nodemon, use this command:
nodemon app1.js
To kill the nodemon running, use:
'Ctrl + C'
This is used for various utility methods
npm install lodash --save
https://lodash.com/docs/4.17.11
The "--save" argument in the install command saves it to the package.json file and incorporates it in there automatically. (Under dependencies)
Most of the time people utilize an underscore to reference the variable. Sample:
//Reference to lodash
const _ = require('lodash');
//To use:
console.log(_.isString(true));
console.log(_.isString("a String"));