Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Node.JS Intro - General Assembly

Node.JS Intro - General Assembly

Node.JS Intro - General Assembly

vladikoff

March 05, 2014
Tweet

More Decks by vladikoff

Other Decks in Technology

Transcript

  1. What is Node.JS? • A platform built using the JavaScript

    runtime • Open Source ( github.com/joyent/node ) • Cross-platform, install it from nodejs.org
  2. Why Node.JS? • JavaScript, JavaScript everywhere! • Server-side frameworks, lots

    of developer tools! • Modular: 60,000+ Node.JS modules! • Works particularly well for: • JSON APIs • single page apps, realtime apps • command line tools
  3. API? http://nodejs.org/api/ Buffer C/C++ Addons Child Processes Crypto Events File

    System HTTP HTTPS Modules Net OS Path Process Query Strings Readline REPL Stream Timers URL Utilities VM ZLIB ….
  4. What else is there? • Server Frameworks • Full Stack

    Frameworks • Testing Frameworks • CSS Preprocessors • Developer Tools • Native Applications • and more…
  5. npm tips • npm install
 installs everything from “package.json” •

    npm install [module_name]
 install a module locally to your project, into a “node_modules” directory • npm install -g [module_name]
 installs the module globally, useful for CLI tools • npm cache clean
 clear system wide module cache
  6. npm tips • npm install [module_name] --save
 saves to “dependencies”

    • npm install [module_name] --save-dev
 saves to “devDependencies” • npm remove [module_name]
 remove the module from “node_modules” • npm list
 will list all the modules and its dependencies in your project