SlideShare a Scribd company logo
Node.js For Beginner
Kao #YWC9
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
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, Electron
Module-driven development
• Node Package Manager (NPM)
• 250,000++ total packages
• 160,000,000 downloads per day
• Simplicity
• Decoupled and reusable coding
Module-driven development
• npm focused on module-driven development
• ES6 Modules
• Module-driven development for the browser
• bower install moment —save
• npm install moment —save
Desktop Application(torrent)
Desktop Application (editor)
Game Dev Tycoon
Fabulous Framework
• Express
• Restify (for building REST API)
• Hapi (configuration-centric framework)
• Sails (fast production-ready)
• Meteor (realtime application)
Asynchronous programming
5s0s 10s
BLOCKING
5s0s 10s
NON-BLOCKING
Create node module
What is Node made of?
Event Loop
V8 JavaScript Engine
• V8 is Google's open source JavaScript engine
• V8 implements ECMAScript as specified in
ECMA-262
• V8 is written in C++ and is used in Google Chrome,
the open source browser from Google
• V8 can run standalone, or can be embedded into any
C++ application
Create Event Emitter
Stream and Buffer
Stream
• A sequence of data made available over time
Buffer
• A temporary holding spot for data being moved from
one place to another
Hello World
Buffer Buffer
Stream
Lorem ipsum dolor sit
amet, consectetur
adipisicing elit, sed do
eiusmod tempor
incididunt ut labore et
dolore magna aliqua. Ut
enim ad minim veniam,
quis nostrud exercitation
ullamco laboris nisi ut
aliquip ex ea commodo
consequat. Duis aute
irure dolor in
lowercase.txt
LOREM IPSUM DOLOR
SIT AMET,
CONSECTETUR
ADIPISICING ELIT, SED
DO EIUSMOD TEMPOR
INCIDIDUNT UT LABORE
ET DOLORE MAGNA
ALIQUA. UT ENIM AD
MINIM VENIAM, QUIS
NOSTRUD
EXERCITATION
ULLAMCO LABORIS NISI
uppercase.txt
stream
Stream
Process
Stream
roL e m
Stream
Process
Stream
Lorem
buffer
LOREM
buffer
Stream
Process
Stream
ipsum
buffer
IPSUM
buffer
Stream
Process
Stream
LOREM IPSUM
Stream
LOREM IPSUM DOLOR
SIT AMET,
CONSECTETUR
ADIPISICING ELIT, SED
DO EIUSMOD TEMPOR
INCIDIDUNT UT LABORE
ET DOLORE MAGNA
ALIQUA. UT ENIM AD
MINIM VENIAM, QUIS
NOSTRUD
EXERCITATION
ULLAMCO LABORIS NISI
uppercase.txt
What is pipe
• Connecting two streams by writing to one stream
• Let you easily read data from a source and pipe it to
a destination
Another Stream
Pipe
Process
Readable Stream
pipe
Process
Hello
Writeable Stream
Write Stream
Build App with Node
Browser
Request
Response
Web
Server
Browser
Request
Response
Web
Server
HTTP
HTTP
Browser
Request
Response
Web
Server
HTTP
HTTP
Javascript
Browser
Request
Response
Web
Server
HTTP
HTTP
Javascript
Javascript
What’s JavaScript on Server-
side
• Read and write file
• Connect with databases
• Build web server
• Asynchronous task queue/job queue
Create http server

More Related Content

What's hot (20)

PDF
Create a RESTful API with NodeJS, Express and MongoDB
Hengki Sihombing
 
PPT
Nodejs - Building a RESTful API
Sang Cù
 
PDF
Golang @ Tokopedia
Qasim Zaidi
 
PPTX
Node.Js: Basics Concepts and Introduction
Kanika Gera
 
PDF
AEM/CQ Montreal User Group Meeting - March 25, 2015 - Takeaways from Adobe Su...
INM_
 
PDF
WebAssembly vs JavaScript: What is faster?
Alexandr Skachkov
 
PPTX
Node.JS and WebSockets with Faye
Matjaž Lipuš
 
PDF
NodeSummit - MEAN Stack
Valeri Karpov
 
PDF
Nodejs
Prem Sanil
 
PPTX
WebAssembly WASM Introduction Presentation
Brad Beiermann
 
PPT
Web assembly overview by Mikhail Sorokovsky
Valeriia Maliarenko
 
PPTX
Scalable server component using NodeJS & ExpressJS
Andhy Koesnandar
 
ODP
An Introduction to WebAssembly
Daniel Budden
 
PDF
Start Serverless with Golang!
Kyuhyun Byun
 
PDF
MEAN Stack - Google Developers Live 10/03/2013
Valeri Karpov
 
PDF
Clouds presentation, aws meetup v2
Cristian Măgherușan-Stanciu
 
PPTX
Introduction to node.js by jiban
Jibanananda Sana
 
PDF
MJ Berends talk - Women & Non-Binary Focused Intro to AWS
AWS Chicago
 
PPTX
Node.js, for architects - OpenSlava 2013
Oscar Renalias
 
PDF
WebAssembly in Houdini CSS, is it possible?
Alexandr Skachkov
 
Create a RESTful API with NodeJS, Express and MongoDB
Hengki Sihombing
 
Nodejs - Building a RESTful API
Sang Cù
 
Golang @ Tokopedia
Qasim Zaidi
 
Node.Js: Basics Concepts and Introduction
Kanika Gera
 
AEM/CQ Montreal User Group Meeting - March 25, 2015 - Takeaways from Adobe Su...
INM_
 
WebAssembly vs JavaScript: What is faster?
Alexandr Skachkov
 
Node.JS and WebSockets with Faye
Matjaž Lipuš
 
NodeSummit - MEAN Stack
Valeri Karpov
 
Nodejs
Prem Sanil
 
WebAssembly WASM Introduction Presentation
Brad Beiermann
 
Web assembly overview by Mikhail Sorokovsky
Valeriia Maliarenko
 
Scalable server component using NodeJS & ExpressJS
Andhy Koesnandar
 
An Introduction to WebAssembly
Daniel Budden
 
Start Serverless with Golang!
Kyuhyun Byun
 
MEAN Stack - Google Developers Live 10/03/2013
Valeri Karpov
 
Clouds presentation, aws meetup v2
Cristian Măgherușan-Stanciu
 
Introduction to node.js by jiban
Jibanananda Sana
 
MJ Berends talk - Women & Non-Binary Focused Intro to AWS
AWS Chicago
 
Node.js, for architects - OpenSlava 2013
Oscar Renalias
 
WebAssembly in Houdini CSS, is it possible?
Alexandr Skachkov
 

Similar to Build App with Nodejs - YWC Workshop (20)

PPTX
Node js for beginners
Arjun Sreekumar
 
PDF
Real time web
Medhat Dawoud
 
PPTX
Node
Ankit Chawla
 
PPT
Node
Manav Prasad
 
PPTX
Kalp Corporate Node JS Perfect Guide
Kalp Corporate
 
PPTX
What is node.js
Rajat Saxena
 
PPTX
02 Node introduction
Ahmed Elbassel
 
PDF
Node.js introduction
Parth Joshi
 
PPTX
Proposal
Constantine Priemski
 
PPT
Node.js
Neethu Dasan
 
PPTX
Nodejs
Vinod Kumar Marupu
 
PPTX
Introduction to Node.js
Vikash Singh
 
ODP
Introduce about Nodejs - duyetdev.com
Van-Duyet Le
 
PPTX
Node.js Test
Maksym Kovalko
 
PDF
Introduction to Node.js
Aaron Rosenberg
 
PDF
Nodejs - Should Ruby Developers Care?
Felix Geisendörfer
 
PPTX
Node.JS| Coffeescript Presentation
Sam Frons
 
Node js for beginners
Arjun Sreekumar
 
Real time web
Medhat Dawoud
 
Kalp Corporate Node JS Perfect Guide
Kalp Corporate
 
What is node.js
Rajat Saxena
 
02 Node introduction
Ahmed Elbassel
 
Node.js introduction
Parth Joshi
 
Node.js
Neethu Dasan
 
Introduction to Node.js
Vikash Singh
 
Introduce about Nodejs - duyetdev.com
Van-Duyet Le
 
Node.js Test
Maksym Kovalko
 
Introduction to Node.js
Aaron Rosenberg
 
Nodejs - Should Ruby Developers Care?
Felix Geisendörfer
 
Node.JS| Coffeescript Presentation
Sam Frons
 
Ad

More from Sarunyhot Suwannachoti (7)

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

Recently uploaded (20)

PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 

Build App with Nodejs - YWC Workshop