View on GitHub

reading-notes-401

Read 01 ~ Node Ecosystem, TDD, CI/CD

By Abdallah obaid

NAME URL
Home Home.
Prep Prep: Engineering Topics.
Read 01 Node Ecosystem, TDD, CI/CD.
Read 02 Classes, Inheritance, Functional.
Read 03 Data Modeling & NoSQL Databases.
Read 04 Advanced Mongo/Mongoose.
Read 05 Linked Lists.
Read 06 HTTP and REST.
Read 07 Express.
Read 08 Express Routing & Connected API.
Read 09 API Server.
Read 10 Stacks and Queues.
Read 11 Authentication.
Read 12 OAuth.
Read 13 Bearer Authorization.
Read 14 Access Control (ACL).
Read 15 Trees.
Read 16 Event Driven Applications.

Node Ecosystem, TDD, CI/CD:-


## Ecosystem: Managed lifecycle and dependency injection for your application components

## Node.js:

## Package:


Reading, Research, and Discussion:-


  1. Why would you want to run JavaScript code outside of a browser?
    • Running JavaScript inside a browser means you are interacting with Web UI (HTML and CSS components) which is displayed on a user’s screen. Running JavaScript without/outside a browser means you are using node. js technology to execute your JavaScript code. This type of usage of javascript typically refers to backend programming where your javascript code will interact with your database and can be used to create RESTful APIs.
  2. What is the difference between a module and a package?
    • Since modules are not required to have a package.json file, not all modules are packages. Only modules that have a package.json file are also packages.
  1. What does the node package manager do? *Store the user’s node packaging in their registry, and allow other users to reuse the public one
  2. Provide code snippets showing 3 different ways to export a function from a node module.
    • Export Object:

      // Log.js module.exports.log = function (msg) { console.log(msg); }; // app.js var msg = require(‘./Log.js’); msg.log(‘Hello World’); // Run and see the output in command prompt as shown below C:\> node app.js Hello World

npm