Node.js ppt
Node.js ppt
• SUBJECT :NODE.JS
• NAME : B.SAIDA NAIK
• DEPT :AIML
• What is Node.js?
• Node.js is an open source server
environment
• Node.js is a server-side platform built on
Google Chrome's JavaScript Engine (V8
Engine).
• Node.js is free
• Node.js runs on various platforms
(Windows, Linux, Unix, Mac OS X, etc.)
• Node.js uses JavaScript on the server
• Node.js was developed by Ryan Dahl in
2009 and its latest version is v0.10.36.
• Node.js = Runtime Environment +
JavaScript Library
• Node.js is an open source, cross-platform
runtime environment for developing
server-side and networking applications.
Features of Node.js
• Asynchronous and Event Driven − All
APIs of Node.js library are
asynchronous,that is, non-blocking.
• Node.js based server never waits for an
API to return data.
• Very Fast − Being built on Google
Chrome's V8 JavaScript Engine, Node.js
library is very fast in code execution.
• No Buffering − Node.js applications never
buffer any data. These applications simply
output the data in chunks.
• License − Node.js is released under the
MIT license.
Where to Use Node.js?
• Following are the areas where Node.js is
proving itself as a perfect technology
partner.
• I/O bound Applications
• Data Streaming Applications
• Data Intensive Real-time Applications
(DIRT)
• JSON APIs based Applications
• Single Page Applications
What is a Node.js File?
•Node.js files contain tasks that will be
executed on certain events
myfirst.js
var http = require('http');
res.end('Hello World!');
}).listen(8080);
The Built-in HTTP Module
Node.js has a built-in module called HTTP, which
allows Node.js to transfer data over the Hyper Text
Transfer Protocol (HTTP).