Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node.js Lab
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
LeoNguyen.com
March 28, 2014
Programming
1.5k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Node.js Lab
Node.js Lab
http://leonguyen.com
LeoNguyen.com
March 28, 2014
More Decks by LeoNguyen.com
See All by LeoNguyen.com
PhoneGap Lab
leonguyen
0
1.5k
jQuery Plugin
leonguyen
0
1.6k
JS Plugin
leonguyen
0
2.5k
HTML5 Lab
leonguyen
0
1.6k
PHP Lab
leonguyen
0
1.7k
Laravel Lab
leonguyen
0
1.9k
Design Resources
leonguyen
1
370
AE Resources
leonguyen
0
350
AE Lab
leonguyen
0
330
Other Decks in Programming
See All in Programming
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
180
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
400
Go 1.27 における memory allocation の高速化
andpad
0
180
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
280
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
150
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
290
リアルな遅延を測る仕様
kota_yata
1
110
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
110
5分で問診!Composer セキュリティ健康診断
codmoninc
0
1k
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
730
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
120
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
The Invisible Side of Design
smashingmag
301
52k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
370
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Into the Great Unknown - MozCon
thekraken
41
2.7k
Everyday Curiosity
cassininazir
0
280
AI: The stuff that nobody shows you
jnunemaker
PRO
9
910
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
250
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Transcript
LeoNguyen.com
Outline - Node.js References (leonguyen.com/nodejs/references.html) - Express.js References (leonguyen.com/nodejs/expressjs/references/) -
Node.js Sites (leonguyen.com/nodejs/Sites.html) - Lab 01: Node.js - Lab 02: Express.js
Lab 01 Node.js
Outline - Lab 01: Introduction to Node.js
Outline - Install Node.js on Windows - Install Node.js on
Linux - Write a Hello Console - Write a Hello HTTP - Write a Hello TCP - Write a Hello UDP
Overview
Overview (cont)
Overview (cont)
Overview (cont)
Exercise 1 Install Node.js
Task 1 - On Windows - Goto Node.js download site
nodejs.org/download (See: youtu. be/n9cs8Bmb6KU) - Check version: using command node -v (See: youtu.be/-hZ9-qkxxOc)
Task 1 - On Linux - Install on Ubuntu (See:
youtu.be/8widdkdSo58) - Install on CentOS (See: youtu.be/bPObquO4FCM) - Check version: using command node -v (See: youtu.be/-hZ9-qkxxOc)
Exercise 2 Write a Hello Console
Task 1 - Write a hello-console.js - Enter code: https://gist.github.com/leonguyen/6472852
Task 2 - Run - Using command: node hello-console.js (See:
youtu.be/LxGlcdR53To)
Exercise 3 Write a Hello HTTP
Task 1 - Write a hello-http.js - Enter code: https://gist.github.com/leonguyen/6492146
Task 2 - Run - Using command: node hello-http.js (See:
youtu.be/IpafeSP6_dg)
Task 3 - Run - Go to: http://localhost:8000/
Exercise 4 Write a Hello TCP
Task 1 - Write a hello-tcp.js - Enter code: https://gist.github.com/leonguyen/6492200
Task 2 - Run - Using command: node hello-tcp.js (See:
youtu.be/5_dVVRmcjWg)
Exercise 5 Write a Hello UDP
Task 1 - Write a hello-udp.js - Enter code: https://gist.github.com/leonguyen/6492554
Task 2 - Write a client-hello-udp.js - Enter code: https://gist.github.com/leonguyen/6492588
Task 3 - Run UDP - Using command: node hello-udp.js
(See: youtu.be/3SzAxXu2zDI)
Task 4 - Run UDP Client - Using command: node
client-hello-udp.js (See: youtu. be/syyp0TWQd4U)
Lab 02 Express.js
Outline - Install and config Express.js - Generate an application
- MySQL
Exercise 1 Install and config Express.js
Task 1 - Create package.json - Check NPM: using command
npm -v (See: youtu.be/_x3EzBCBd_o) - Enter code: https://gist.github.com/leonguyen/6504935
Task 2 - Install Express.js - Install Express: using command
npm install (See: youtu. be/umjcT1sH22Q) or npm install -g express (for available from anywhere) - Check Express: using command express --version (See: youtu. be/a8H41rePUJM)
Exercise 2 Generate an application
Task 1 - Generate an application - Using command express
--sessions --css stylus --ejs [nodeapp] (See: youtu.be/7QMhdISI-7s)
Task 2 - Install dependencies - Using command npm install
(See: youtu.be/qgi16SrXcTI)
Task 3 - Run - Using command node app (See:
youtu.be/xFBKkD4xC5w)
Task 4 - Run - Go to: http://localhost:3000 and http://localhost:3000/users
Exercise 3 MySQL
Task 1 - Install MySQL - Using command npm install
mysql See: youtu.be/uEWKuQQiPVs, youtu.be/CB80P8_i7gg (CentOS)