Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Serverless FrameworkとVue.jsのSSRでWebサイトを作った話
Search
Yuichi Shundo
March 08, 2017
Programming
770
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Serverless FrameworkとVue.jsのSSRでWebサイトを作った話
Yuichi Shundo
March 08, 2017
Other Decks in Programming
See All in Programming
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
140
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
570
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
R8 の設定見直しでアプリサイズ削減
andpad
0
220
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
160
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
ジョジョの世界をXRで再現する
mofurune
0
170
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
Featured
See All Featured
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Design in an AI World
tapps
1
350
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Claude Code のすすめ
schroneko
67
230k
Statistics for Hackers
jakevdp
799
230k
A better future with KSS
kneath
240
18k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
Producing Creativity
orderedlist
PRO
348
41k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
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ରԠޙ)