Skip to content

cbaldelomar/curso-node-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curso de Node.js

Curso de Node.js

Curso para aprender Node.js desde cero.

Videos de las clases

Use fnm as version manager

  • List installed Node.js versions

    fnm ls
  • Install a new Node.js version, e.g. install Node v18:

    fnm install 18
  • Change Node.js version

    fnm use 18

For more information see fnm docs.

Configurations

Config linter

  1. Install Standard

    npm install standard -D
  2. Add to packages.json

    "eslintConfig": {
      "extends": "standard"
    }
  3. Install ESLint extension

  4. Add to settings.json

    "[javascript]": {
      "editor.formatOnSave": true
    },
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
    }
  5. Additionally, to highlight errors install Error Lens extension

    Note: To avoid invasive error messages, add "errorLens.followCursor": "activeLine" to settings.json to display the error only on the active line.

Using nodemon

  1. Install nodemon

    npm install nodemon -D
  2. Add to packages.json

    "scripts": {
      "dev": "nodemon [your_js_file_name.js]"
    }

Behind a corporate proxy?

Disable (and then reenable) strict mode to install npm packages:

npm set strict-ssl false

Continue...

Clase 6

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published