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
wakayamarb#37
Search
KamataRyo
September 22, 2016
Programming
1
88
wakayamarb#37
Node.jsでHTTPを処理するハンズオンです。
KamataRyo
September 22, 2016
Tweet
Share
More Decks by KamataRyo
See All by KamataRyo
TileCloud の開発を支える技術
kamataryo
2
360
NPX-shell-hacking
kamataryo
0
44
frontend-shikoku#1
kamataryo
1
680
Introducing of Map Warper
kamataryo
0
1.3k
wp-rest-api-and-amazon-polly
kamataryo
0
930
how-to-deploy-from-travis-ci
kamataryo
1
740
IoT with React
kamataryo
1
270
wacker#17-wreact
kamataryo
0
130
Why have I preferred open source after leaving a public office?
kamataryo
1
5.9k
Other Decks in Programming
See All in Programming
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
850
Webエンジニア主体のモバイルチームの 生産性を高く保つためにやったこと
igreenwood
0
340
短期間での新規プロダクト開発における「コスパの良い」Goのテスト戦略」 / kamakura.go
n3xem
2
170
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
200
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
340
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
850
たのしいparse.y
ydah
3
120
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
創造的活動から切り拓く新たなキャリア 好きから始めてみる夜勤オペレーターからSREへの転身
yjszk
1
130
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Agile that works and the tools we love
rasmusluckow
328
21k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
We Have a Design System, Now What?
morganepeng
51
7.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Site-Speed That Sticks
csswizardry
2
190
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
The Invisible Side of Design
smashingmag
298
50k
Transcript
HTTP request & response with Node.js @Wakayama.rb #37
Install Node.js
Brew Node.js on OSX
Start with @ $a@ For OSX or Linux For Windows
Check if Node.js installed OPEFW W OQNW W
Try Node.js on shell OPEF WBSB VOEFGJOFE
B @
Try Node.js on shell WBSGSVJUT<BQQMF CBOBOB> VOEFGJOFE GSVJUTQVTI HSBQF
GSVJUT <BQQMF CBOBOB HSBQF> @
Try Node.js on shell WBSTDPSFT\^ VOEFGJOFE TDPSFT<.BUI> TDPSFT.BUI
@
Try Node.js on shell WBSTBZ)FMMPGVODUJPO \ DPOTPMFMPH IFMMP ^
VOEFGJOFE TBZ)FMMP <'VODUJPO> TBZ)FMMP IFMMP VOEFGJOFE @
Try npm OQNJOTUBMMHDPXTBZ DPXTBZ8BLBZBNBSC @@@@@@@@@@@@@ XBLBZBNBSC =?@@? = PP
=@@@@@@@ @@ = == ]]X] ]]]]
Try npm NLEJSQSPKFDU/BNF DEQSPKFDU/BNF OQNJOJU @
Try npm UPVDIJOEFYKT OQNJOTUBMMTBWFSFRVFTU MT JOEFYKTQBDLBHFKTPOOPEF@NPEVMFT @
Make HTTP request WJNJOEFYKT ǎVTFTUSJDUǏ WBSSFRVFTUSFRVJSF SFRVFTU WBSPQUJPOT\ VSMIUUQXUUSJOXBLBZBNB
IFBEFST\ 6TFS"HFOUDVSM ^ ^ SFRVFTU PQUJPOT GVODUJPO FSSPS SFTQPOTF CPEZ \ JG FSSPSSFTQPOTFTUBUVT$PEF \ DPOTPMFMPH CPEZ ^ ^
Make HTTP request OPEFJOEFYKT @
Create HTTP server OQNJOTUBMMTBWFFYQSFTT UPVDITFSWFSKT @
Create HTTP server WJNTFSWFSKT WBSBQQSFRVJSF FYQSFTT BQQ HFU ǎVTFSTOBNFǏ
GVODUJPO SFR SFT \ SFTTFOE )FMMP ^ DPOTPMFMPH TFSWFSJTMJTUFOJOH BQQMJTUFO
Create HTTP server OPEFTFSWFSKT DVSMIUUQMPDBMIPTU IFMMP @