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
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
フロントよわよわエンジニアがVue.js触ってみた
mutao
October 29, 2021
Transcript
16 slides
ϑϩϯτΑΘΑΘΤϯδχΞ ͕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
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠
More Decks by mutao
See All by mutao
どめいんのおはなし
mutao
0
40
Other Decks in Technology
See All in Technology
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
17
10k
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
440
AIフレンドリーなGenerative UIをJSXで
uhyo
2
180
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
320
設計手法を「道具」として使いこなすために
a_suenami
7
1.8k
From vibe coding to reliable (agentic) development
jcabot
0
250
Test Impact Analysis を武器に立ち向かう、AI 時代のテスト増加に対するヌーラボのアプローチ / getting-started-datadog-test-impact-analysis
k6s4i53rx
3
870
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
240
Metadata - Section 4 : MODS (Metadata Object Description Schema )
mohab1
0
120
kubellの最新データ分析環境
kubell_hr
2
270
Is the Website Dying?
miriamschwab
0
180
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
620
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
Become a Pro
speakerdeck
PRO
31
6.4k
Designing for Timeless Needs
cassininazir
1
570
Exploring anti-patterns in Rails
aemeredith
4
580
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Designing Experiences People Love
moore
143
24k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k