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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
LeoNguyen.com
March 28, 2014
Programming
1
1.5k
Node.js Lab
Node.js Lab
http://leonguyen.com
LeoNguyen.com
March 28, 2014
Tweet
Share
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
350
AE Resources
leonguyen
0
340
AE Lab
leonguyen
0
320
Other Decks in Programming
See All in Programming
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
390
CSC307 Lecture 08
javiergs
PRO
0
670
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
180
Fluid Templating in TYPO3 14
s2b
0
130
Data-Centric Kaggle
isax1015
2
760
MUSUBIXとは
nahisaho
0
130
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.7k
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
680
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
CSC307 Lecture 01
javiergs
PRO
0
680
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
0
740
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
200
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
170
What's in a price? How to price your products and services
michaelherold
247
13k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
Ruling the World: When Life Gets Gamed
codingconduct
0
140
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
36k
Prompt Engineering for Job Search
mfonobong
0
160
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
エンジニアに許された特別な時間の終わり
watany
106
230k
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)