adrisantos11 / web-portfolio

Interactive web portfolio to see experience, projects and relevant data about me.
GNU General Public License v3.0
0 stars 0 forks source link

Introduction to Node JS #5

Open adrisantos11 opened 1 year ago

adrisantos11 commented 1 year ago

Have a look to the next Node JS tutorial in Youtube: Node JS Tutorial 2023

adrisantos11 commented 1 year ago

Introduction to Node.js (videos from 1-7)

Summary:

Resume: Important to understand what is Node, where it cames from and how it works.

adrisantos11 commented 1 year ago

Local modules (videos from 8 to 17)

Summary:

Resume:

  1. Each file loaded by Node.js is considered as a module.
  2. To include variables, classes and functions from outside a module: a. CommonJS: they have to be implicity exported with module.exports or exports and imported with require(). b. ES Modules: Exported with export default or export and imported with import * from './rute'
  3. Watch mode to update the console with each change: node --watch file (17)
adrisantos11 commented 1 year ago

Build-in Modules (18 to 36)

Summary (also summary on video 36 - 2:00)

Extending from EventEmitter. Possible to create a class extending from EventEmitter and use its methods to create events inside the custom class (22)

Needed knowledge

  1. Stream: Sequence of data that is being moved from an endpoint to another over the time.
  2. Buffer: Incredible example in the video (rollercoaster example => 2:15 - 5:05)

Resume

  1. Use always node: protocol when importing built-in modules
adrisantos11 commented 1 year ago

Libuv dependency (37 to )

Summary

Resume