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)

PDF
Introduction to Node.js
Aaron Rosenberg
 
PDF
Node, express & sails
Brian Shannon
 
PPTX
introduction to node.js
orkaplan
 
PPTX
Java script nirvana in netbeans [con5679]
Ryan Cuprak
 
PDF
DevOpsCon 2015 - DevOps in Mobile Games
Andreas Katzig
 
PPTX
Beginners Node.js
Khaled Mosharraf
 
PPTX
A brief intro to nodejs
Jay Liu
 
PPTX
concept of server-side JavaScript / JS Framework: NODEJS
Kongu Engineering College, Perundurai, Erode
 
PDF
321 codeincontainer brewbox
Lino Telera
 
PPT
18_Node.js.ppt
MaulikShah516542
 
PPTX
Nodejs Security
Jason Ross
 
PDF
Real time web
Medhat Dawoud
 
PPT
18_Node.js.ppt
KhalilSalhi7
 
PDF
FITC - Node.js 101
Rami Sayar
 
PDF
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
Tech in Asia ID
 
PDF
🚀 Node.js Simplified – A Visual Guide for Beginners!
Tpoint Tech Blog
 
PDF
An introduction to Node.js
Kasey McCurdy
 
PPTX
Coding for the cloud - development of modern web applications
Wekoslav Stefanovski
 
KEY
An Introduction to Node.js Development with Windows Azure
Troy Miles
 
PDF
Aws-What You Need to Know_Simon Elisha
Helen Rogers
 
Introduction to Node.js
Aaron Rosenberg
 
Node, express & sails
Brian Shannon
 
introduction to node.js
orkaplan
 
Java script nirvana in netbeans [con5679]
Ryan Cuprak
 
DevOpsCon 2015 - DevOps in Mobile Games
Andreas Katzig
 
Beginners Node.js
Khaled Mosharraf
 
A brief intro to nodejs
Jay Liu
 
concept of server-side JavaScript / JS Framework: NODEJS
Kongu Engineering College, Perundurai, Erode
 
321 codeincontainer brewbox
Lino Telera
 
18_Node.js.ppt
MaulikShah516542
 
Nodejs Security
Jason Ross
 
Real time web
Medhat Dawoud
 
18_Node.js.ppt
KhalilSalhi7
 
FITC - Node.js 101
Rami Sayar
 
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
Tech in Asia ID
 
🚀 Node.js Simplified – A Visual Guide for Beginners!
Tpoint Tech Blog
 
An introduction to Node.js
Kasey McCurdy
 
Coding for the cloud - development of modern web applications
Wekoslav Stefanovski
 
An Introduction to Node.js Development with Windows Azure
Troy Miles
 
Aws-What You Need to Know_Simon Elisha
Helen Rogers
 
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
 
PDF
RabbitMQ
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
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Digital Circuits, important subject in CS
contactparinay1
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 

Build App with Nodejs - YWC Workshop