25
By : Arpita Patel

NodeJS_Presentation

Embed Size (px)

Citation preview

By : Arpita Patel

What is node Js?

Developed by Ryan Dahl in 2009.

Runtime Environment and Library for running javascript application outside of browser

Server side programming framework.

Features of node JsVery Fast : Google Chrome V8 Java Script Engine.

Single Threaded but Highly Scalable : Single threaded model with event looping

No Buffering

Asynchronous and Event Driven

open source

Non-Blocking

Where to use node Js?Streaming or Event-based real-time applications like:

Chat Applications

Game Server

Ad Server

Streaming Servers

High level of concurrency but little dedicated CPU time.

writing JavaScript code everywhere.

Node in the WildMicrosoft

Yahoo!

Linkedin

eBay

Cloud9

The New York Times

NPM (Node Package Manager)

Online Repositories for node.js package/module

Command line utility to install node js package.

Event-drivenMain loop that listens for every events and triggers a callback function when those event detected.

run in one process — one thread.

Multi-Thread

Single-Thread

Non-Block

Socket.ioSocket.IO enables real-time bidirectional event-based communication.

It works on every platform, browser or device, focusing equally on reliability and speed.

like :

Chat Application

Binary Streaming

Document Collaboration

Single-Thread Event Loop Model

Install NodeDownload node.js source code from below website.

https://nodejs.org/en/download/

Install it

Check version on Terminal(Mac) or Command line(Windows).

Node Installation

Node Installation

Node Installation

Node Installation

Node Installation

Check Node Version

Simple Node Program with Terminal / CMD

ExpressFast, minimal and Flexible node js web Application Framework.

robust set of features for Web & Mobile app.

Express Installation

Create & Run Express Projectexpress <project name>

cd <project name>

npm install

npm start

http://localhost:3000

run application

Resourceshttps://www.youtube.com/watch?v=pU9Q6oiQNd0

https://www.youtube.com/watch?v=czmulJ9NBP0

https://nodejs.org/en/

https://code.visualstudio.com/docs/runtimes/nodejs

http://www.journaldev.com/7462/node-js-processing-model-single-threaded-model-with-event-loop-architecture

http://www.tutorialspoint.com/nodejs/index.htm