Node.js Introduction Duong “Yang” H. Nguyen, @cmpitg Fedora Ambassador, Certified Mozillian Hanoi Community Space cmpitg [at] gmail dot com This document is licensed under the terms ofCreative Commons Non-commercial Share-Like 3.0 Unported
AgendaWhat Node.js is and is not?Why Node.js?How to use? (with demo)As a scripting engineBest uses (briefly)Frameworks/ToolsQuestions
What Node.js is and is not? Is/doesA frameworkProviding evented, non blocking I/OBuilt on top of Googles V8JS environment NOTVery very fast! A web framework: –Ruby on Rails – Django – Yii Multi-threaded
How to use?Installation: Install Node.js – – Install NPM – Install modulesDemos: – Simple HTTP server – Simple echo server
As a Scripting EngineModules: – Processes & Child Process – Filesystem – UtilitiesDocs: http://nodejs.org/api/
Best UsesWriting highly concurrent server applicationsApplications which share between server and clientPeer-to-peer web programming using websocketsAnd of course – highly concurrent web programming
Frameworks/ToolsNPM – Node Package ManagerExpress – Minimalistic MVC web frameworkTowerJS – Rails-like web frameworkJade – Template engineSocket.IO – Websocket library… and much more!