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
フロントよわよわエンジニアがVue.js触ってみた
Search
mutao
October 29, 2021
Technology
21
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
フロントよわよわエンジニアがVue.js触ってみた
mutao
October 29, 2021
More Decks by mutao
See All by mutao
どめいんのおはなし
mutao
0
35
Other Decks in Technology
See All in Technology
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
340
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
170
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
150
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
190
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
120
WasmをRustにする
sansantech
PRO
0
250
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
770
夫婦で子育てするための育児標準化
codmoninc
PRO
0
330
会社説明資料
persolserverworks
0
9.8k
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
Featured
See All Featured
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
How STYLIGHT went responsive
nonsquared
100
6.3k
Making Projects Easy
brettharned
120
6.8k
Accessibility Awareness
sabderemane
1
250
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Transcript
ϑϩϯτΑΘΑΘΤϯδχΞ ͕Vue.jsΛ৮ͬͯΈͨ
Agenda ▰ Introductio n ▰ ϑϩϯτॳֶऀͱͯ͠ ▰ ࡞ͬͨͷͷհ ▰ Vue.jsͬͯΈͯ
▰ ࠓޙͬͯΈ͍ͨ͜ͱ ▰ ͓·͚ 2
Introduction ▰ Mutao (@mutao_net ) ▰ αʔόʔαΠυΤϯδχΞ ▰ ϑϩϯτΑΘΑΘΤϯδχΞ ▰
Java/Perl/Golan g ▰ झຯͰPHPͱVue.js৮ͬͯ·͢ɻ ׂͱงғؾͰͬͯ·͢Թ͔͍Ͱ͝ཡ͍ͩ͘͞ 3
ϑϩϯτॳֶऀͱͯ͠ ▰ ϑϩϯτΤϯυϊʔλονͰ͖ͨ ▰ ࢼ͠ʹͬͯΈΔ͔ͱ;ͱࢥ͏ɻ ▰ ΔͳΒɺΠέͯΔΞϓϦ͕࡞Γ͔ͨͬͨ ▰ ࠓΛͱ͖Ί͘Vue.jsΛֶशͯ͠ΈΔ͜ͱʹ ▰
·ͣγϯϓϧͳΞϓϦέʔγϣϯ࡞ʂ 4
࡞ͬͨͷ Cocktai l https://mutao-cocktail.herokuapp.com/ 5
6
Vue.jsͬͯΈͯ ࡶײ ͏ͪΐͬͱৄ͘͠ 7
ࡶײ ▰ ͳΜ͔దʹͬͯͨΒͰ͖ͨ ▰ ϑϩϯτॳֶऀʹ༏͍͠ˍ͓͠ΌΕ ▰ ίϯϙʔωϯτϥΠϒϥϦͷଘࡏ ▰ Element-ui,Bulm a
▰ ϨεϙϯγϒରԠͷBulma͕͓͢͢Ί ▰ σόοά͍͢͠ ▰ Vue.js devtoo l ▰ దͳAPIΛݟ͚͙ͭͯ͢ʹ։ൃͰ͖Δ 8
͏ͪΐͬͱৄ͘͠ ▰ Vue-cli(webpack)ͷଘࡏ ▰ ܗ࡞πʔϧ ▰ ෦తʹcli-serviceͱ͍͏ϥΠϒϥϦΛͬͯΔ ▰ webpackΛϥοϓ͍ͯ͠Δ ▰
vue-loader͕vueίϯϙʔωϯτΛJavaScriptʹม͢Δ ▰ ։ൃ࣌ͷϗοτϦϩʔυΛఏڙͯ͠Δͷvue-loader 9
͏ͪΐͬͱৄ͘͠ (٧·ͬͨͱ͜Ζ) ▰ Mounted ͱ create d ▰ APIΞΫηε࣌ʹͲͪΒͷϥΠϑαΠΫϧϑοΫΛ͏͔໎ͬͨ ▰
ཁDOMߏங͕͍ྃͯ͠Δ͔Ͳ͏͔ͷҧ͍ͩͬͨ ▰ σʔλΛऔಘ͢Δ͚ͩͳΒcreated͕ૣ͍ ▰ DOMͷૢ࡞ͳͲ͕ඞཁͳ߹mountedͰΔ ▰ jQueryͷॲཧ͕Ҿ͖ͣͬͯΔ࣌ͱ͔ 10
ͬͯΈ͍ͨ͜ͱ 11 Laravu e Nuxt.j s vue.ts
LaraVue ▰ LaraVue(Laravel + Vue.js ) ▰ LaravelͷެࣜυΩϡϝϯτʹVueΛ ಋೖ͢Δखॱ͕ॻ͔ΕͯΔ ▰
ษڧձ͋ΔΈ͍ͨ ▰ LaraVueษڧձ 12
Nuxt.js ▰ VueͷϑϨʔϜϫʔΫ ▰ αʔόʔαΠυϨϯμϦϯάରԠ ▰ Ұॠνϥͬͱ͢Δͷʹ݁ߏΠϥΠϥ͞ ͤΒΕͨ ▰ ৴ઃఆͳͲ͕͋ΓɺखΛग़͢ͷʹԯ
߷ʹͳͬͯΔɻ 13
Vue.ts ▰ ECMAͷ··Ͱॻ͔͘TypeScriptͰ ॻ͔͘Ή࣌ऴΘͬͨʢΒ͍͠ʣ ▰ ͦΖͦΖTypeScriptΛษڧ͠ͳ͍ͱ ·͍͔ͣͳ͊ͱ͍͏ҙࣝ 14
͓·͚ ▰ 10000छྨҎ্ͷAPIʹΞΫηεͰ͖Δ 15 ▰ ΈΜͳେ͖Lin e ▰ ͙͢ʹLineBotΛ࡞ΕͪΌ͏ Line
Messaging API
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠