Intro to Node - raisercostin/software-wiki GitHub Wiki

Landscape

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

npm is the package manager for JavaScript and the world’s largest software registry. Discover packages of reusable code — and assemble them in powerful new ways.

Tools

  • node
  • npm
    • project defined in package.json
    • build with npm install
    • delegate to other scripts npm run
  • yarn (npm alternative better in 2016, worse in 2018 than npm) - https://iamturns.com/yarn-vs-npm-2018/
  • grunt
  • bower - A package manager for the web
    • install npm install -g bower
    • script defined in bower.json

Install

  • check installation
    • node -v
    • npm -v

Resources