%3CLINGO-SUB%20id%3D%22lingo-sub-1576638%22%20slang%3D%22en-US%22%3ELearn%20Node.js%20with%20these%205%20modules%20on%20LEARN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1576638%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3E%26gt%3B%20This%20is%20a%20set%20of%20tutorials%20that%20was%20just%20released%20on%20the%20topic%20of%20Node.js.%20It%20takes%20you%20from%20the%20very%20beginning%20of%20your%20developer%20journey%20with%20Node.js%20to%20tell%20you%20the%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewhat%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Band%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewhys%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Bof%20Node.js%20to%20teaching%20you%20debugging%2C%20file%20management%2C%20dependency%20management%2C%20and%20even%20web%20development.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20full%20path%20is%20found%20here%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Flearn%2Fpaths%2Fbuild-javascript-applications-nodejs%2F%3Fwt.mc_id%3Dnodepath-techcommunity-cxa%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ELEARN%20module%20path%20on%20Node.js%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1295300520%22%20id%3D%22toc-hId--1295300495%22%3E-1-%20Introduction%20to%20Node.js%3C%2FH2%3E%0A%3CP%3EThis%20is%20a%20great%20primer%20if%20you%20are%20considering%20to%20use%20Node.js.%20It%20will%20explain%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewhy%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ebut%20also%20show%20you%20can%20use%20it%20from%20the%20command-line.%3C%2FP%3E%0A%3CP%3EThis%20module%20teaches%20you%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EExplain%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewhat%20Node.js%20is%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EDescribe%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ehow%20Node.js%20works%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EIdentify%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewhen%20to%20use%20Node.js%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ECreate%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20run%20a%20Node.js%20script%20from%20the%20command%20line%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E-ERR%3AREF-NOT-FOUND-Introduction%20to%20Node.js%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1192212313%22%20id%3D%22toc-hId-1192212338%22%3E-2-%20Create%20a%20new%20Node.js%20project%20and%20work%20with%20dependencies%3C%2FH2%3E%0A%3CP%3ENode.js%20has%20a%20rich%20ecosystem%20of%20packages%20that%20you%20can%20install%20and%20use%20in%20your%20app.%20Once%20installed%20these%20packages%20becomes%20dependencies%20that%20you%20need%20to%20learn%20how%20to%20manage%20as%20they%20will%20be%20with%20the%20project%20for%20a%20while.%20This%20module%2C%20therefore%2C%20teaches%20dependency%20management%20but%20also%20everything%20that%20goes%20with%20it%20like%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EInitialize%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ENode.js%20projects%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EUnderstand%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewhat%20the%20manifest%20file%20package.json%20consist%20of%20and%20use%20it%20to%20your%20advantage%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAdd%20and%20remove%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Epackages%20to%20your%20Node.js%20project%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EManage%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eyour%20package%20dependencies%20and%20update%20them%20in%20a%20predictable%20way%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E-ERR%3AREF-NOT-FOUND-Manage%20dependencies%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--615242150%22%20id%3D%22toc-hId--615242125%22%3E-3-%20Work%20with%20files%20and%20directories%3C%2FH2%3E%0A%3CP%3EWorking%20with%20files%20and%20directories%20is%20a%20great%20skill%20to%20have%20regardless%20of%20the%20programming%20language%20used.%20This%20module%20takes%20you%20through%20a%20lot%20of%20things%20that%20are%20good%20to%20know%20when%20dealing%20with%20input%20and%20output.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESample%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Econst%20fs%20%3D%20require('fs').promises%3B%0Aconst%20items%20%3D%20await%20fs.readdir(%22stores%22)%3B%0Aconsole.log(items)%3B%20%2F%2F%20%5B%20201%2C%20202%2C%20sales.json%2C%20totals.txt%20%5D%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CP%3EThis%20module%20teaches%20you%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EWork%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewith%20directories%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ECreate%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20delete%20files%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ERead%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efrom%20files%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EWrite%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20files%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EParse%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edata%20in%20files%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E-ERR%3AREF-NOT-FOUND-Work%20with%20files%20and%20directories%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1872270683%22%20id%3D%22toc-hId-1872270708%22%3E-4-%20Debugging%3C%2FH2%3E%0A%3CP%3EBeing%20able%20to%20debug%20efficiently%20can%20save%20you%20a%20lot%20of%20time.%20This%20module%20takes%20you%20through%20all%20that%20you%20might%20possibly%20need%20to%20know%20to%20be%20really%20good%20at%20debugging%20in%20Node.js.%20The%20module%20covers%20the%20following%20topics%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EUse%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EVS%20Code%20debugger%20with%20a%20Node.js%20program.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ECreate%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ebreakpoints%20and%20run%20your%20code%20step%20by%20step%20to%20find%20issues.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EInspect%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eyour%20program%20state%20at%20any%20execution%20step.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ERewind%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethe%20call%20stack%20to%20find%20the%20source%20of%20an%20exception.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E-ERR%3AREF-NOT-FOUND-Debugging%20module%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-64816220%22%20id%3D%22toc-hId-64816245%22%3E-ERR%3AREF-NOT-FOUND--5-%20Use%20Express%20to%20build%20a%20Web%20App%3C%2FH2%3E%0A%3CP%3ESample%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Econst%20express%20%3D%20require('express')%3B%0Aconst%20app%20%3D%20express()%3B%0Aapp.get('%2F'%2C%20(req%2C%20res)%20%3D%26gt%3B%20res.send('Welcome%20to%20the%20app'))%0Aapp.listen(8000%2C%20()%20%3D%26gt%3B%20console.log('Server%20up%20and%20running'))%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CP%3EThis%20module%20teaches%20you%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EDescribe%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethe%20core%20concepts%20of%20the%20web%20framework%20Express%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EConfigure%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Emiddleware%20to%20control%20how%20a%20request%20is%20handled%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ERespond%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20HTTP%20requests%20with%20different%20types%20of%20content%20like%20text%20and%20JSON%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESend%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edata%20to%20an%20Express%20endpoint%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E-ERR%3AREF-NOT-FOUND-Build%20web%20apps%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1576638%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EThis%20is%20a%20set%20of%20tutorials%20that%20was%20just%20released%20on%20the%20topic%20of%20Node.js.%20It%20takes%20you%20from%20the%20very%20beginning%20of%20your%20developer%20journey%20with%20Node.js%20to%20tell%20you%20the%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewhat%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Band%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewhys%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Bof%20Node.js%20to%20teaching%20you%20debugging%2C%20file%20management%2C%20dependency%20management%2C%20and%20even%20web%20development.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22intro-to-node-dark.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206459i1C81A080AF76572B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22intro-to-node-dark.png%22%20alt%3D%22intro-to-node-dark.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1576638%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EJavaScript%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENode.js%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

> This is a set of tutorials that was just released on the topic of Node.js. It takes you from the very beginning of your developer journey with Node.js to tell you the what and whys of Node.js to teaching you debugging, file management, dependency management, and even web development.

 

The full path is found here LEARN module path on Node.js

-1- Introduction to Node.js

This is a great primer if you are considering to use Node.js. It will explain the why but also show you can use it from the command-line.

This module teaches you the following:

  • Explain what Node.js is
  • Describe how Node.js works
  • Identify when to use Node.js
  • Create and run a Node.js script from the command line

Introduction to Node.js

 

-2- Create a new Node.js project and work with dependencies

Node.js has a rich ecosystem of packages that you can install and use in your app. Once installed these packages becomes dependencies that you need to learn how to manage as they will be with the project for a while. This module, therefore, teaches dependency management but also everything that goes with it like:

  • Initialize Node.js projects
  • Understand what the manifest file package.json consist of and use it to your advantage
  • Add and remove packages to your Node.js project
  • Manage your package dependencies and update them in a predictable way

Manage dependencies

 

-3- Work with files and directories

Working with files and directories is a great skill to have regardless of the programming language used. This module takes you through a lot of things that are good to know when dealing with input and output.

Sample:

const fs = require('fs').promises;
const items = await fs.readdir("stores");
console.log(items); // [ 201, 202, sales.json, totals.txt ]

This module teaches you the following:

  • Work with directories
  • Create and delete files
  • Read from files
  • Write to files
  • Parse data in files

Work with files and directories

 

-4- Debugging

Being able to debug efficiently can save you a lot of time. This module takes you through all that you might possibly need to know to be really good at debugging in Node.js. The module covers the following topics:

  • Use VS Code debugger with a Node.js program.
  • Create breakpoints and run your code step by step to find issues.
  • Inspect your program state at any execution step.
  • Rewind the call stack to find the source of an exception.

Debugging module

 

-5- Use Express to build a Web App

Sample:

const express = require('express');
const app = express();
app.get('/', (req, res) => res.send('Welcome to the app'))
app.listen(8000, () => console.log('Server up and running'))

This module teaches you the following:

  • Describe the core concepts of the web framework Express
  • Configure middleware to control how a request is handled
  • Respond to HTTP requests with different types of content like text and JSON
  • Send data to an Express endpoint

Build web apps