NodeJS Introduction<br />What is Node? (Teaser)<br />How to install/set-up and examples<br />
Introduction<br />Introduction to Node JS<br />How to Install/Tools<br />Basic Node concepts (teaser)<br />Demo<br />
How to Install (VM) (1/5)<br />Download Ubuntu TurnKey from http://www.turnkeylinux.org/core<br />Download the free Vmware player from http://www.vmware.com/download/player/thankyou.html<br /> (or use VMWare Workstation)<br />Start the Turnkey Virtual Appliance and follow instruction to set-up root password and update security.<br />Note IP@ to connect to with SSH<br />
How to Install (SSH) (2/5)<br />Get your favorite SSH tool (duh, Putty!)<br />http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<br />Set-up your SSH connection as indicated left <br />Approve to the RSA key as shown right <br />
How to Install (Misc.) (3/5)<br />Get Filezilla http://filezilla-project.org/ if you want to transfer through SSH with your favorite editor<br />I use NotePad++ http://notepad-plus-plus.org/with an NppFTP extension http://sourceforge.net/projects/nppftp/ (not automated but easier to remember)<br />
How to Install (Git) (4/5)<br />Install Compile tools<br />apt-get install gcc<br />apt-get install g++<br />apt-get install make<br />Install Git (would be a good L&L. Volunteers?)<br />apt-get install git-core<br />Git the node repo: <br />(alternative is to download & install the TAR’ed version from nodejs but what’s the fun ?<br />wget http://nodejs.org/dist/node-v0.4.12.tar.gz)<br />gitclone git://github.com/joyent/node.git <br />Make sure to use the latest stable version<br />(As of 10/3/2011, I recommend 0.4.11. 0.4.12 seems to be the latest though)<br /> cd node<br />gitcheckout v0.4.11 <br />Configure/Make<br />./configure<br />Make<br />Make Install<br />You are all set:<br />cd benchmark/<br />node v8_bench.js<br />
How to Install (NPM) (5/5)<br />Get CURL<br /> apt-get install curl<br />Install NPM<br />curl http://npmjs.org/install.sh | sh<br />You are all set<br />npm<br />
What is NPM?<br />NPM is a Node Dependency manager (better than APT)<br />Get a package, and all dependent package will automatically be installed<br />
You do many medium size payloads that could benefit from asynchronous processing
References<br />Web faction blog<br />http://blog.webfaction.com/a-little-holiday-present<br />Understanding event loops and writing great code for node.js<br />http://developer.yahoo.com/blogs/ydn/posts/2010/10/understanding-the-event-loops-and-writing-great-code-for-node-js-part-1/<br />A Not Very Short Introduction To node.js<br />http://blog.jayway.com/2011/05/15/a-not-very-short-introduction-to-node-js/<br />Comet with node.js and V8 (amix)<br />http://www.slideshare.net/amix3k/comet-with-nodejs-and-v8<br />Introduction to node.js (JacekBecela)<br />http://www.slideshare.net/jacekbecela/introduction-to-nodejs<br />Node.JS references<br />http://nodejs.org/<br />Bex Huff <br />http://bexhuff.com/<br />
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.