Upload
meraj-khattak
View
2.698
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
Meraj Rasool KhattakTechnical LeadGoodCore Software Inc.
1. Background2. jQuery, Prototype, Firebug and others3. Node.js
HTML, JavaScript, DHTML and that’s all.
Gmail and Ajax. Introduction of jQuery, Prototype and
other JS frameworks.Birth of Firebug
The first incarnations of JavaScript lived in browsers. Node.js really is just another context: it allows you to run JavaScript code in the backend, outside a browser.
In 2009 Ryan Dahl created a framework that appeared to propose an answer to the technical challenge of interacting with a large web audience in real-time.
1. Google's V8 VM2. libev3. libeio
Node leverages a number of existing open-source projects: most importantly Marc Lehmann's libev and libeio C libraries and Google's V8 JavaScript engine. The libev and libeio C libraries handle the intricacies of event-driven networking and input/output while the V8 engine allows Node to be programmed using JavaScript.
Node is conceptually composed of three layers of functionality:
The underlying core engine, a number of core modules that add provide utility functions and APIs, and community-created modules for everything else.
1. Installation2. Hello World
Node.js is really two things: a runtime environment and a library.
To install: https://github.com/joyent/node/wiki/Installation
Linux: apt-get, rpm or make.Windows: untar the package and run
exe.
var http = require("http");
http.createServer(function(request, response) { console.log("Request received."); response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Hello World"); response.end();}).listen(8888);
WhiteBoard Google Docs ExcelTrello – Project Collaboration Tool
Audience questions.