SlideShare a Scribd company logo
Node.js For Beginner
Sarunyhot Suvannachoti (Kao)
Software Engineer @ Jitta.com
What is Node.js
• Created by Ryan Dahl in 2009
• Server-side JavaScript
• Uses V8 is an open source JavaScript engine developed by Google.Its
written in C++ and is used in Google Chrome Browser
• Event-driven with Non-blocking I/O
• Single threaded
• Current Version is 4.0.0
Node.js Foundation
Fork of Node.js
+
Node.js Event loop
Blocking I/O
Blocking I/O
10 Sec
30 Sec
Blocking I/O
30 Sec
10 Sec
Sum = 30 + 10
Non-Blocking I/O
Non-Blocking I/O
Run parallel
min=10
max=30
Asynchronous programming
techniques
The two model of Async Processing
• Callback function generally define logic for one-off responses.–
Ex: perform a database query
• Event listeners, are essentially callbacks that are associated with
a conceptual entity (an event).–Respond to repeating events –EX:
HTTP server emits a request event when an HTTP request is made
What is callback function?
• A callback is a function,passed as an argument to an asynchronous
function
• It describes what to do after the asynchronous operation has completed
Callback function
What is event-listeners?
What is event-listeners?
Stream
When to use Node.js?
• Creating streaming based real-time services,web chat
applications,static file servers etc.
• Applications that have a lot of concurrent connections and each
request only needs very few CPU cycles
The Essence of Node
• JavaScript on the Server
• More than server-side JavaScript
• Fabulous framework
• Asynchronous programming
• Module-driven development
It’s is JavaScript
• Easy to learn
• Lets you unify your client/server logic
• Productivity
• Already in the Enterprise (Paypal,Netflix,Walmart,IBM)
More than server-side JavaScript
• Web server
• Robot controller (tessel.io)
• Command line application
• Proxy server
• Music machine
• Desktop application tooling: NW.js
Desktop Application (torrent)
Desktop Application (editor)
Desktop Application (music)
Desktop Application (game)
Fabulous framework
• Express
• Restify (for building REST APIs, automatic DTrace support)
• Hapi (configuration-centric framework)
• Sails (fast production-ready)
• Meteor (realtime application)
Module-driven development
• Node Package Manager (NPM)
• 180,000++ packages
• 90,000,000++ downloads per day
• Simplicity
• Decoupled and reusable coding
Node.js for beginner
Node.js for beginner
The state of the registry
• 1400MM package downloads last
month
• 150,000 packages in the registry
• `Node` is moving faster than `Node.js`
Module-driven development
• npm focused on module-driven development
• ES6 Modules
• Module-driven development for the browser
• Browser tools: Browserify
Module-driven development for the
browser
bower install moment --save
npm install moment --save
DEMO
Where can learn more?
• http://nodeschool.io
• http://www.codewars.com
• https://www.codeschool.com/courses/real-time-web-with-node-js
• http://nodeup.com/

More Related Content

PPTX
Node.js tutoria for beginner
PPT
Introduction to node.js aka NodeJS
PDF
Build App with Nodejs - YWC Workshop
PDF
Introduction to Node.js
PPTX
Introduction to node.js by jiban
PPTX
Node.js, for architects - OpenSlava 2013
PPTX
Node js introduction
PDF
Complete MVC on NodeJS
Node.js tutoria for beginner
Introduction to node.js aka NodeJS
Build App with Nodejs - YWC Workshop
Introduction to Node.js
Introduction to node.js by jiban
Node.js, for architects - OpenSlava 2013
Node js introduction
Complete MVC on NodeJS

What's hot (20)

PDF
Nodejs
PPTX
NodeJS - Server Side JS
PDF
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
PPTX
Node js for beginners
PDF
Understand How Node.js and Core Features Works
PPTX
Create Rest API in Nodejs
PDF
Create a RESTful API with NodeJS, Express and MongoDB
PPTX
Introduction to node.js
PPTX
NodeJS Concurrency
PDF
Node.js concurrency
PDF
Introduction to node js - From "hello world" to deploying on azure
PDF
Nodejs presentation
PDF
Fundamental of Node.JS - Internship Presentation - Week7
PPTX
Introduction to Node.js
PDF
Node.js Crash Course
PDF
Understanding the Single Thread Event Loop
PDF
Introduction to REST API with Node.js
PPTX
Introduction to Node js
PPTX
Introduction to node.js GDD
PPTX
Node js Introduction
Nodejs
NodeJS - Server Side JS
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
Node js for beginners
Understand How Node.js and Core Features Works
Create Rest API in Nodejs
Create a RESTful API with NodeJS, Express and MongoDB
Introduction to node.js
NodeJS Concurrency
Node.js concurrency
Introduction to node js - From "hello world" to deploying on azure
Nodejs presentation
Fundamental of Node.JS - Internship Presentation - Week7
Introduction to Node.js
Node.js Crash Course
Understanding the Single Thread Event Loop
Introduction to REST API with Node.js
Introduction to Node js
Introduction to node.js GDD
Node js Introduction
Ad

Viewers also liked (12)

PPT
Node js
PDF
Rise of node(Part I)
PDF
Node & Express as Workflow Tools
PPTX
Nodejs introduce - using Socket.io
PDF
Node, express & sails
PDF
All aboard the NodeJS Express
PDF
Workshop 4: NodeJS. Express Framework & MongoDB.
PDF
Express node js
PDF
NodeJS for Beginner
PDF
The MEAN stack - SoCalCodeCamp - june 29th 2014
PDF
Nodejs Explained with Examples
Node js
Rise of node(Part I)
Node & Express as Workflow Tools
Nodejs introduce - using Socket.io
Node, express & sails
All aboard the NodeJS Express
Workshop 4: NodeJS. Express Framework & MongoDB.
Express node js
NodeJS for Beginner
The MEAN stack - SoCalCodeCamp - june 29th 2014
Nodejs Explained with Examples
Ad

Similar to Node.js for beginner (20)

PPTX
An overview of node.js
PPTX
PDF
PDF
Introduction to Node.js
PPTX
Kalp Corporate Node JS Perfect Guide
PPT
18_Node.js.ppt
PPT
18_Node.js.ppt
PPTX
Definitive Guide to Powerful Nodejs Development.pptx
PPTX
Node js meetup
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
PDF
Node js (runtime environment + js library) platform
PPTX
Unit 1 Express J for mean stack and mern
ODP
Introduce about Nodejs - duyetdev.com
PPT
Introducción y comandos en NodeJS slodte
PDF
🚀 Node.js Simplified – A Visual Guide for Beginners!
PPTX
Basic Concept of Node.js & NPM
KEY
20120514 nodejsdublin
PDF
Node.js Web Development SEO Expert Bangladesh LTD.pdf
PPTX
NodeJS guide for beginners
PPTX
Nodejs
An overview of node.js
Introduction to Node.js
Kalp Corporate Node JS Perfect Guide
18_Node.js.ppt
18_Node.js.ppt
Definitive Guide to Powerful Nodejs Development.pptx
Node js meetup
Server Side Web Development Unit 1 of Nodejs.pptx
Node js (runtime environment + js library) platform
Unit 1 Express J for mean stack and mern
Introduce about Nodejs - duyetdev.com
Introducción y comandos en NodeJS slodte
🚀 Node.js Simplified – A Visual Guide for Beginners!
Basic Concept of Node.js & NPM
20120514 nodejsdublin
Node.js Web Development SEO Expert Bangladesh LTD.pdf
NodeJS guide for beginners
Nodejs

More from Sarunyhot Suwannachoti (7)

PDF
Avoiding Callback Hell From JavaScript
PDF
The Future of JavaScript
PDF
Build web application with express
PDF
The future of node
ODP
Python Course #1
PPTX
Introduction to CodeIgniter
Avoiding Callback Hell From JavaScript
The Future of JavaScript
Build web application with express
The future of node
Python Course #1
Introduction to CodeIgniter

Recently uploaded (20)

PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
GamePlan Trading System Review: Professional Trader's Honest Take
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
MYSQL Presentation for SQL database connectivity
Dropbox Q2 2025 Financial Results & Investor Presentation
Understanding_Digital_Forensics_Presentation.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Diabetes mellitus diagnosis method based random forest with bat algorithm
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....

Node.js for beginner