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
Serverless FrameworkとVue.jsのSSRでWebサイトを作った話
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuichi Shundo
March 08, 2017
Programming
1
770
Serverless FrameworkとVue.jsのSSRでWebサイトを作った話
Yuichi Shundo
March 08, 2017
Tweet
Share
Other Decks in Programming
See All in Programming
CSC307 Lecture 09
javiergs
PRO
1
840
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
290
AgentCoreとHuman in the Loop
har1101
5
240
ぼくの開発環境2026
yuzneri
0
240
CSC307 Lecture 10
javiergs
PRO
1
660
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
140
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
190
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
750
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Building the Perfect Custom Keyboard
takai
2
690
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Become a Pro
speakerdeck
PRO
31
5.8k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.1k
Amusing Abliteration
ianozsvald
0
100
A better future with KSS
kneath
240
18k
Transcript
Serverless Framework & Vue.jsͷSSRͰ WebαΠτΛ࡞ͬͨ גࣜձࣾΧϥμϝσΟΧ Yuichi Shundo ( @shundoroid
)
ࣗݾհ • גࣜձࣾΤϜςΟʔΞΠ • גࣜձࣾΧϥμϝσΟΧ (ΤϜςΟʔΞΠࢠձࣾ) ग़ Android ΞϓϦɺUnity(ήʔϜΤϯδϯ) ɺASP.Net
MVC Microsoft Azure ɺAWS
serverlessͰ࡞ͬͨαΠτ CaraCoro https://caracoro.jp ݱҩࢣ͕Ϣʔβʔ͔Βͷ࣭ ʹճ͢ΔใΛίϯςϯπͱ ͯ͠ఏڙ͢ΔϝσΟΞαΠτ
։ൃڥ • Serverless Framework 1.4 • node.js 4.3 • TypeScript
2.1 • Vue.js 1.0 • Visual Studio Code (ΤσΟλ)
Vue.js JavaScriptϑϨʔϜϫʔΫ ܰྔ MVVM (Model-View-ViewModel) ࠓͷ͓Ͱग़ͯ͜ͳ͍͜ͱ ɾSPA ɾModel-ViewόΠϯσΟϯά
࠷ॳͷߏ (Client-Side-Rendering) RDS Lambda S3 CloudFront API Gateway
੩తϑΝΠϧ܈ HTML, JS, CSS, Image ಈతίϯςϯπऔಘAPI (QAใɺίϥϜ) ΫϥΠΞϯτ (Webϒϥβ) Route53 Vue.js
͔͠͠… • SEOͷ • GoogleʹVueͷςϯϓϨʔτܗࣜͰΠϯσοΫε͞Εͯ͠·ͬͨ
αʔόʔαΠυϨϯμϦϯά (SSR) • αʔόαΠυͰHTMLΛߏஙͯ͠ϨεϙϯεΛฦ͢ɻ • ΫϥΠΞϯτଆ͔Β੩తͳHTMLϖʔδʹݟ͑Δɻ SEOతͳΛղফ
SSRʹม͑ͨߏ RDS Lambda S3 CloudFront API Gateway ੩తϑΝΠϧ܈
JS, CSS, Image ΫϥΠΞϯτ Route53 HTMLvueςϯϓϨʔτ lambdaͷϩʔΧϧʹอ࣋ text/htmlܗࣜͷ ϨεϙϯεΛฦ͢
1.X 2.X • ެࣜͰSSRʹରԠ • Third-Party ϥΠϒϥϦ vue-server
࠶Ϋϩʔϥʔʹొ
CaraCoroͰݱࡏະରԠ • Catch-all • URLͰҙͷύεʹରͯ͠API GatewayΛݺͼग़ͤΔ • Proxy-integration • API
GatewayͱlambdaͰςϯϓϨʔτϚοϐϯάΛॻ͘ඞཁ͕ͳ͍ •։ൃͨ͠ॳ͜ΕΒͷػೳ͕ແ͔ͬͨ •͍ۙ͏ͪʹରԠ͍ͨ͠!!
serverless.yml (catch-allະରԠ)
serverless.yml (catch-allରԠޙ)