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
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
330
AE Lab
leonguyen
0
320
Other Decks in Programming
See All in Programming
ASP. NET CoreにおけるWebAPIの最新情報
tomokusaba
0
220
GitHub CopilotでTypeScriptの コード生成するワザップ
starfish719
28
6.1k
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.6k
ecspresso, ecschedule, lambroll を PipeCDプラグインとして動かしてみた (プロトタイプ) / Running ecspresso, ecschedule, and lambroll as PipeCD Plugins (prototype)
tkikuc
2
2.3k
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
240
[Fin-JAWS 第38回 ~re:Invent 2024 金融re:Cap~]FaultInjectionServiceアップデート@pre:Invent2024
shintaro_fukatsu
0
360
Kanzawa.rbのLT大会を支える技術の裏側を変更する Ruby on Rails + Litestream 編
muryoimpl
0
120
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
3
630
[JAWS-UG横浜 #79] re:Invent 2024 の DB アップデートは Multi-Region!
maroon1st
0
130
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
0
230
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
140
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
3
310
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
990
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
A designer walks into a library…
pauljervisheath
205
24k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Side Projects
sachag
452
42k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Building an army of robots
kneath
302
45k
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)