14
Meraj Rasool Khattak Technical Lead GoodCore Software Inc.

Node.js an introduction

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Node.js   an introduction

Meraj Rasool KhattakTechnical LeadGoodCore Software Inc.

Page 2: Node.js   an introduction

1. Background2. jQuery, Prototype, Firebug and others3. Node.js

Page 3: Node.js   an introduction

HTML, JavaScript, DHTML and that’s all.

Page 4: Node.js   an introduction

Gmail and Ajax. Introduction of jQuery, Prototype and

other JS frameworks.Birth of Firebug

Page 5: Node.js   an introduction

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.

Page 6: Node.js   an introduction

1. Google's V8 VM2. libev3. libeio

Page 7: Node.js   an introduction

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.

Page 8: Node.js   an introduction

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.

Page 9: Node.js   an introduction
Page 10: Node.js   an introduction

1. Installation2. Hello World

Page 11: Node.js   an introduction

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.

Page 12: Node.js   an introduction

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);

Page 13: Node.js   an introduction

WhiteBoard Google Docs ExcelTrello – Project Collaboration Tool

Page 14: Node.js   an introduction

Audience questions.