SlideShare a Scribd company logo
NodeJS IntroductionWhat is Node? (Teaser)How to install/set-up and examples
IntroductionIntroduction to Node JSHow to Install/ToolsBasic Node concepts (teaser)Demo
Nodejs IntroductionNodeJS is built on Google’s V8 Javascript engineServer-side non blocking asynchronous JSPerfect for “blood” of Web 2.0 apps (streams, comet, AJAX, etc) and scale
How to Install (VM) (1/5)Download Ubuntu  TurnKey from http://www.turnkeylinux.org/coreDownload the free Vmware player from http://www.vmware.com/download/player/thankyou.html     (or use VMWare Workstation)Start the Turnkey Virtual Appliance and follow instruction to set-up root password and update security.Note IP@ to connect to with SSH
How to Install (SSH) (2/5)Get your favorite SSH tool (duh, Putty!)http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlSet-up your SSH connection as indicated left Approve to the RSA key as shown right
How to Install (Misc.) (3/5)Get Filezilla http://filezilla-project.org/ if you want to transfer through SSH with your favorite editorI use NotePad++ http://notepad-plus-plus.org/with an NppFTP extension http://sourceforge.net/projects/nppftp/ (not automated but easier to remember)
How to Install (Git) (4/5)Install Compile toolsapt-get install gccapt-get install g++apt-get install makeInstall Git (would be a good L&L. Volunteers?)apt-get install git-coreGit the node repo: (alternative is to download & install the TAR’ed version from nodejs but what’s the fun  ?wget http://nodejs.org/dist/node-v0.4.12.tar.gz)gitclone git://github.com/joyent/node.git Make sure to use the latest stable version(As of 10/3/2011, I recommend 0.4.11. 0.4.12 seems to be the latest though) cd nodegitcheckout v0.4.11 Configure/Make./configureMakeMake InstallYou are all set:cd benchmark/node v8_bench.js
How to Install (NPM) (5/5)Get CURL apt-get install curlInstall NPMcurl http://npmjs.org/install.sh | shYou are all setnpm
What is NPM?NPM is a Node Dependency manager (better than APT)Get a package, and all dependent package will automatically be installed
Good Node PackagesConnectThe middleware framework for node: Logging, Cookies, Sessions, Cache, response time …ExpressBuilt on Connect. Essentially all the libraries that people are used to when doing server side development   (such asp.net) (Routing, content negotiations, configurations, etc) Socket.io“Socket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It's care-free realtime 100% in JavaScript.” (essentially synthetically do “sockets” in HTTP)TwitternodeA complete node twitter client API wrapper supporting full JSON streams.
Why on earth would I want do do server-side JavaScript?Because geeks like to play with new thingsBecause you like the open/flexible/powerful nature of a language such as javascriptYou already do a lot of client-side javascriptYou need to “Web” scaleYou need to communicate with many other resources
You do many medium size payloads that could benefit from asynchronous processing
Many javascript developers and a growing established open-source javascriptlibraries and code repositoryMore importantly :It’s cool: And, it hasn’t jumped the shark (yet?):Give me the geek versionPerformance rocks on many connections, resources utilizationNo concepts of threads, which is an extremely wasteful idea when trying to server many (thousands) requestsStreaming (comets) & big data payloads (big .csv reports scaled to thousands) do not scale on thread-based serversNon blocking calls can handle way more  requests/seconds and use less memorySource: http://blog.webfaction.com/a-little-holiday-present
So what have we learnt so far?Node.JS is using non-blocking, event-based (asynchronous) engine to deliver a much more scalable serverJavascript is a really natural fit for event-based programming
Events in Node.jsRelies on event-loop systemShould be familiar for all developers (.net …) who used events & delegates or others who are familiar with concept of callbacks.Javascript is a really natural fit for event-based programmingBuilds on anonymous functions (lamba*) * Tom will do a L&L on advanced JS (closure, Lambda) concepts shortly
Blocking vs Non Blocking
Event Loop DemoDemo!
NodeJS Full Demo
ReferencesWeb faction bloghttp://blog.webfaction.com/a-little-holiday-presentUnderstanding event loops and writing great code for node.jshttp://developer.yahoo.com/blogs/ydn/posts/2010/10/understanding-the-event-loops-and-writing-great-code-for-node-js-part-1/A Not Very Short Introduction To node.jshttp://blog.jayway.com/2011/05/15/a-not-very-short-introduction-to-node-js/Comet with node.js and V8 (amix)http://www.slideshare.net/amix3k/comet-with-nodejs-and-v8Introduction to node.js (JacekBecela)http://www.slideshare.net/jacekbecela/introduction-to-nodejsNode.JS referenceshttp://nodejs.org/Bex Huff http://bexhuff.com/

More Related Content

PDF
NodeJS for Beginner
Apaichon Punopas
 
PPTX
Introduction to Node js
Akshay Mathur
 
PPTX
Introduction Node.js
Erik van Appeldoorn
 
PPTX
Introduction to Node.js
Vikash Singh
 
PDF
Introduction to Node.js
Rob O'Doherty
 
PDF
Nodejs Explained with Examples
Gabriele Lana
 
PPTX
Build RESTful API Using Express JS
Cakra Danu Sedayu
 
PPTX
Introduction to NodeJS
Cere Labs Pvt. Ltd
 
NodeJS for Beginner
Apaichon Punopas
 
Introduction to Node js
Akshay Mathur
 
Introduction Node.js
Erik van Appeldoorn
 
Introduction to Node.js
Vikash Singh
 
Introduction to Node.js
Rob O'Doherty
 
Nodejs Explained with Examples
Gabriele Lana
 
Build RESTful API Using Express JS
Cakra Danu Sedayu
 
Introduction to NodeJS
Cere Labs Pvt. Ltd
 

What's hot (20)

PPTX
Node.js Express
Eyal Vardi
 
PDF
Nodejs presentation
Arvind Devaraj
 
PPTX
Node js Introduction
sanskriti agarwal
 
PPTX
Introduction to React JS for beginners
Varun Raj
 
PPTX
Introduction to Node.js
AMD Developer Central
 
PPTX
Introduction to node.js
Dinesh U
 
PPT
Maven Introduction
Sandeep Chawla
 
PPTX
Basic Concept of Node.js & NPM
Bhargav Anadkat
 
PPTX
React js
Oswald Campesato
 
PPTX
React workshop
Imran Sayed
 
PDF
Spring MVC Framework
Hùng Nguyễn Huy
 
PDF
Express node js
Yashprit Singh
 
PPTX
[Final] ReactJS presentation
洪 鹏发
 
PPTX
Mongoose and MongoDB 101
Will Button
 
PPTX
Express JS
Designveloper
 
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
PDF
Use Node.js to create a REST API
Fabien Vauchelles
 
PPTX
Introduction to spring boot
Santosh Kumar Kar
 
PPTX
React hooks
Assaf Gannon
 
Node.js Express
Eyal Vardi
 
Nodejs presentation
Arvind Devaraj
 
Node js Introduction
sanskriti agarwal
 
Introduction to React JS for beginners
Varun Raj
 
Introduction to Node.js
AMD Developer Central
 
Introduction to node.js
Dinesh U
 
Maven Introduction
Sandeep Chawla
 
Basic Concept of Node.js & NPM
Bhargav Anadkat
 
React workshop
Imran Sayed
 
Spring MVC Framework
Hùng Nguyễn Huy
 
Express node js
Yashprit Singh
 
[Final] ReactJS presentation
洪 鹏发
 
Mongoose and MongoDB 101
Will Button
 
Express JS
Designveloper
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
Use Node.js to create a REST API
Fabien Vauchelles
 
Introduction to spring boot
Santosh Kumar Kar
 
React hooks
Assaf Gannon
 
Ad

Viewers also liked (20)

PDF
Non-blocking I/O, Event loops and node.js
Marcus Frödin
 
KEY
Introduction to node.js
jacekbecela
 
PPT
Node js presentation
martincabrera
 
PDF
Best node js course
bestonlinecoursescoupon
 
PDF
The Enterprise Case for Node.js
NodejsFoundation
 
PDF
Introduction to node js - From "hello world" to deploying on azure
Colin Mackay
 
ODP
node.js
Matthias Gutjahr
 
PPTX
Node js for enterprise
ravisankar munusamy
 
PPT
single page application
Ravindra K
 
PPTX
Angular 2 with TypeScript
Cipriano Freitas
 
PDF
Firebase and AngularJS
Ladislav Prskavec
 
PDF
Single-Page Web Application Architecture
Eray Arslan
 
PDF
The Tale of 2 CLIs - Ember-cli and Angular-cli
Tracy Lee
 
PPTX
Rits Brown Bag - TypeScript
Right IT Services
 
PPTX
Angular 2 + TypeScript = true. Let's Play!
Sirar Salih
 
PDF
Intro to Front End Development with Angular + Firebase
Ben Drucker
 
PPTX
Angular 2 with TypeScript
Shravan Kumar Kasagoni
 
PDF
Using Angular-CLI to Deploy an Angular 2 App Using Firebase in 30 Minutes
Tracy Lee
 
PDF
Creating an Angular 2 Angular CLI app in 15 Minutes Using MaterializeCSS & Fi...
Tracy Lee
 
PDF
Single page application
Jeremy Lee
 
Non-blocking I/O, Event loops and node.js
Marcus Frödin
 
Introduction to node.js
jacekbecela
 
Node js presentation
martincabrera
 
Best node js course
bestonlinecoursescoupon
 
The Enterprise Case for Node.js
NodejsFoundation
 
Introduction to node js - From "hello world" to deploying on azure
Colin Mackay
 
Node js for enterprise
ravisankar munusamy
 
single page application
Ravindra K
 
Angular 2 with TypeScript
Cipriano Freitas
 
Firebase and AngularJS
Ladislav Prskavec
 
Single-Page Web Application Architecture
Eray Arslan
 
The Tale of 2 CLIs - Ember-cli and Angular-cli
Tracy Lee
 
Rits Brown Bag - TypeScript
Right IT Services
 
Angular 2 + TypeScript = true. Let's Play!
Sirar Salih
 
Intro to Front End Development with Angular + Firebase
Ben Drucker
 
Angular 2 with TypeScript
Shravan Kumar Kasagoni
 
Using Angular-CLI to Deploy an Angular 2 App Using Firebase in 30 Minutes
Tracy Lee
 
Creating an Angular 2 Angular CLI app in 15 Minutes Using MaterializeCSS & Fi...
Tracy Lee
 
Single page application
Jeremy Lee
 
Ad

Similar to Node js introduction (20)

ODP
Introduce about Nodejs - duyetdev.com
Van-Duyet Le
 
PPTX
Nodejs
Vinod Kumar Marupu
 
PPT
18_Node.js.ppt
KhalilSalhi7
 
PDF
Nodejs a-practical-introduction-oredev
Felix Geisendörfer
 
PPT
18_Node.js.ppt
MaulikShah516542
 
PPTX
introduction to node.js
orkaplan
 
PDF
Tech io nodejs_20130531_v0.6
Ganesh Kondal
 
PDF
Server-Side JavaScript Developement - Node.JS Quick Tour
q3boy
 
PPTX
Beginners Node.js
Khaled Mosharraf
 
PPTX
An overview of node.js
valuebound
 
KEY
Node.js - A practical introduction (v2)
Felix Geisendörfer
 
PDF
Nodejs - A quick tour (v5)
Felix Geisendörfer
 
PPTX
Node js for beginners
Arjun Sreekumar
 
PPTX
Kalp Corporate Node JS Perfect Guide
Kalp Corporate
 
PDF
Real time web
Medhat Dawoud
 
PDF
Node.js for beginner
Sarunyhot Suwannachoti
 
PPTX
Proposal
Constantine Priemski
 
PPTX
NodeJS guide for beginners
Enoch Joshua
 
PDF
Introduction to Node.js
Jack Franklin
 
PPTX
Node js meetup
Ansuman Roy
 
Introduce about Nodejs - duyetdev.com
Van-Duyet Le
 
18_Node.js.ppt
KhalilSalhi7
 
Nodejs a-practical-introduction-oredev
Felix Geisendörfer
 
18_Node.js.ppt
MaulikShah516542
 
introduction to node.js
orkaplan
 
Tech io nodejs_20130531_v0.6
Ganesh Kondal
 
Server-Side JavaScript Developement - Node.JS Quick Tour
q3boy
 
Beginners Node.js
Khaled Mosharraf
 
An overview of node.js
valuebound
 
Node.js - A practical introduction (v2)
Felix Geisendörfer
 
Nodejs - A quick tour (v5)
Felix Geisendörfer
 
Node js for beginners
Arjun Sreekumar
 
Kalp Corporate Node JS Perfect Guide
Kalp Corporate
 
Real time web
Medhat Dawoud
 
Node.js for beginner
Sarunyhot Suwannachoti
 
NodeJS guide for beginners
Enoch Joshua
 
Introduction to Node.js
Jack Franklin
 
Node js meetup
Ansuman Roy
 

Recently uploaded (20)

PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Software Development Methodologies in 2025
KodekX
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPT
L2 Rules of Netiquette in Empowerment technology
Archibal2
 
This slide provides an overview Technology
mineshkharadi333
 
Software Development Methodologies in 2025
KodekX
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Doc9.....................................
SofiaCollazos
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
L2 Rules of Netiquette in Empowerment technology
Archibal2
 

Node js introduction

  • 1. NodeJS IntroductionWhat is Node? (Teaser)How to install/set-up and examples
  • 2. IntroductionIntroduction to Node JSHow to Install/ToolsBasic Node concepts (teaser)Demo
  • 3. Nodejs IntroductionNodeJS is built on Google’s V8 Javascript engineServer-side non blocking asynchronous JSPerfect for “blood” of Web 2.0 apps (streams, comet, AJAX, etc) and scale
  • 4. How to Install (VM) (1/5)Download Ubuntu TurnKey from http://www.turnkeylinux.org/coreDownload the free Vmware player from http://www.vmware.com/download/player/thankyou.html (or use VMWare Workstation)Start the Turnkey Virtual Appliance and follow instruction to set-up root password and update security.Note IP@ to connect to with SSH
  • 5. How to Install (SSH) (2/5)Get your favorite SSH tool (duh, Putty!)http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlSet-up your SSH connection as indicated left Approve to the RSA key as shown right
  • 6. How to Install (Misc.) (3/5)Get Filezilla http://filezilla-project.org/ if you want to transfer through SSH with your favorite editorI use NotePad++ http://notepad-plus-plus.org/with an NppFTP extension http://sourceforge.net/projects/nppftp/ (not automated but easier to remember)
  • 7. How to Install (Git) (4/5)Install Compile toolsapt-get install gccapt-get install g++apt-get install makeInstall Git (would be a good L&L. Volunteers?)apt-get install git-coreGit the node repo: (alternative is to download & install the TAR’ed version from nodejs but what’s the fun  ?wget http://nodejs.org/dist/node-v0.4.12.tar.gz)gitclone git://github.com/joyent/node.git Make sure to use the latest stable version(As of 10/3/2011, I recommend 0.4.11. 0.4.12 seems to be the latest though) cd nodegitcheckout v0.4.11 Configure/Make./configureMakeMake InstallYou are all set:cd benchmark/node v8_bench.js
  • 8. How to Install (NPM) (5/5)Get CURL apt-get install curlInstall NPMcurl http://npmjs.org/install.sh | shYou are all setnpm
  • 9. What is NPM?NPM is a Node Dependency manager (better than APT)Get a package, and all dependent package will automatically be installed
  • 10. Good Node PackagesConnectThe middleware framework for node: Logging, Cookies, Sessions, Cache, response time …ExpressBuilt on Connect. Essentially all the libraries that people are used to when doing server side development (such asp.net) (Routing, content negotiations, configurations, etc) Socket.io“Socket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It's care-free realtime 100% in JavaScript.” (essentially synthetically do “sockets” in HTTP)TwitternodeA complete node twitter client API wrapper supporting full JSON streams.
  • 11. Why on earth would I want do do server-side JavaScript?Because geeks like to play with new thingsBecause you like the open/flexible/powerful nature of a language such as javascriptYou already do a lot of client-side javascriptYou need to “Web” scaleYou need to communicate with many other resources
  • 12. You do many medium size payloads that could benefit from asynchronous processing
  • 13. Many javascript developers and a growing established open-source javascriptlibraries and code repositoryMore importantly :It’s cool: And, it hasn’t jumped the shark (yet?):Give me the geek versionPerformance rocks on many connections, resources utilizationNo concepts of threads, which is an extremely wasteful idea when trying to server many (thousands) requestsStreaming (comets) & big data payloads (big .csv reports scaled to thousands) do not scale on thread-based serversNon blocking calls can handle way more requests/seconds and use less memorySource: http://blog.webfaction.com/a-little-holiday-present
  • 14. So what have we learnt so far?Node.JS is using non-blocking, event-based (asynchronous) engine to deliver a much more scalable serverJavascript is a really natural fit for event-based programming
  • 15. Events in Node.jsRelies on event-loop systemShould be familiar for all developers (.net …) who used events & delegates or others who are familiar with concept of callbacks.Javascript is a really natural fit for event-based programmingBuilds on anonymous functions (lamba*) * Tom will do a L&L on advanced JS (closure, Lambda) concepts shortly
  • 16. Blocking vs Non Blocking
  • 19. ReferencesWeb faction bloghttp://blog.webfaction.com/a-little-holiday-presentUnderstanding event loops and writing great code for node.jshttp://developer.yahoo.com/blogs/ydn/posts/2010/10/understanding-the-event-loops-and-writing-great-code-for-node-js-part-1/A Not Very Short Introduction To node.jshttp://blog.jayway.com/2011/05/15/a-not-very-short-introduction-to-node-js/Comet with node.js and V8 (amix)http://www.slideshare.net/amix3k/comet-with-nodejs-and-v8Introduction to node.js (JacekBecela)http://www.slideshare.net/jacekbecela/introduction-to-nodejsNode.JS referenceshttp://nodejs.org/Bex Huff http://bexhuff.com/

Editor's Notes

  • #4: - Lars Bak (SmallTalk, Java, now JS VM)