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
Webpack ❤ Vue.js
Search
Alan Michel Willms Quinot
April 03, 2016
Technology
30
0
Share
Webpack ❤ Vue.js
Alan Michel Willms Quinot
April 03, 2016
More Decks by Alan Michel Willms Quinot
See All by Alan Michel Willms Quinot
Do RPC ao GraphQL
alanwillms
0
48
JWT
alanwillms
0
60
PHP – principais novidades do 5.3 ao 5.6
alanwillms
0
61
Other Decks in Technology
See All in Technology
探して_入れて_作って_使う_Agent_Skills___LT.pdf
peintangos
2
150
自称宇宙最速で不合格となったAIP-C01にリベンジを果たすべくAIで問題集アプリを作ってみた。
yama3133
0
260
Strands Agents超入門
kintotechdev
1
160
AI活用を推進するために ファインディが下した、一つの小さな決断
starfish719
0
190
Mastering Ruby Box
tagomoris
3
140
「速く作る」から「正しく作る」へ ─ 生成AI時代の開発フロー改革の ロードマップと実行 ─
starfish719
0
4k
AIを「創る」と「使う」の循環 — HRテックが実践するリアルなAI組織実装
taketo957
0
680
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.8k
関西に縁あるMicrosoft MVPsが語るCopilotの未来
kasada
0
990
Chart.js が簡単に使えるようになっていたので OGP 画像生成に使った話
kamekyame
0
130
『家族アルバム みてね』における インシデント対応との向き合い方 / Approach incident response in Family Album
kohbis
2
290
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
370
Featured
See All Featured
It's Worth the Effort
3n
188
29k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
380
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Building AI with AI
inesmontani
PRO
1
1k
The Cult of Friendly URLs
andyhume
79
6.9k
Done Done
chrislema
186
16k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
590
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Crafting Experiences
bethany
1
160
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
55k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Paper Plane
katiecoart
PRO
1
51k
Transcript
Webpack ❤ Vue.js
vamos falar sobre front-end
front-end é a camada de apresentação
front-end é o código que executa no navegador
front-end antigamente
front-end hoje em dia
navegadores antigamente
navegadores hoje em dia
Webpack é um empacotador de web assets
O Webpack transforma os arquivos
None
O Webpack resolve todas as dependências
1. Logger 2. Axios 3. Vue 4. jQuery 5. Application
6. Validator 7. Products Service 8. Product 9. Product Form 10. Products List 11. Login Service 12. Login Form Unused; Product Form; Vue; Axios; Products Service; Logger; Application; Unused; jQuery; Products List; Validator; Login Form; Product; Unused; Login Service
é hora do hands-on!
dúvidas?
vamos falar sobre SPAs
SPAs são Aplicações de Página Única
SPAs são o oposto de MPAs
multi page applications
multi page applications
multi page applications
GET http://tradetools/produtos multi page applications
<!-- DOCTYPE HTML --> <html> <head> <title>Produtos… </head> <body> …
</body> </html> GET http://tradetools/produtos multi page applications
<!-- DOCTYPE HTML --> <html> <head> <title>Produtos… </head> <body> …
</body> </html> GET http://tradetools/produtos multi page applications
single page applications
single page applications
single page applications
event.preventDefault history.pushState single page applications
AJAX GET /produtos event.preventDefault history.pushState single page applications
AJAX GET /produtos event.preventDefault history.pushState [{id: 1, name: "Coca", price:
4.99},{id: 2, name: "Doritos", price: 6.99},{id: 3, name: "Chocolícia", price: 3.99}, …] single page applications
AJAX GET /produtos event.preventDefault history.pushState [{id: 1, name: "Coca", price:
4.99},{id: 2, name: "Doritos", price: 6.99},{id: 3, name: "Chocolícia", price: 3.99}, …] <div class="foo-bar"> … </div> single page applications
None
None
Vue.js é um framework para construir interfaces
Vue.js não é um framework full-stack
vue: componentes axios: ajax vuex: estado vue-router: rotas etc…
é hora do hands-on!
dúvidas?
DŌ JŌ
referências https://vuejs.org https://webpack.js.org https://laracasts.com/series/webpack-for-everyone https://laracasts.com/series/learn-vue-2-step-by-step