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
高野さん_Rails 5.2 + Vue.js 新サービスを爆速開発.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
shuuu-mai
June 01, 2018
540
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
高野さん_Rails 5.2 + Vue.js 新サービスを爆速開発.pdf
shuuu-mai
June 01, 2018
More Decks by shuuu-mai
See All by shuuu-mai
小宮山さん_ドメイン駆動Vuexスライド_改3.pdf
shuumatu_worker
0
540
大畑さん_20180530_shuuumatu-worker_lt_ohata__2_.pdf
shuumatu_worker
0
220
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
610
Unsuck your backbone
ammeep
672
58k
Ruling the World: When Life Gets Gamed
codingconduct
0
430
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Code Review Best Practice
trishagee
74
20k
Making the Leap to Tech Lead
cromwellryan
135
10k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
The SEO Collaboration Effect
kristinabergwall1
1
620
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
First, design no harm
axbom
PRO
2
1.4k
Transcript
3BJMT 7VFKT ৽αʔϏεΛര։ൃ 2018.05.30
ࣗݾհ • 1990( 5#1 '/ • 2014( *+4$%&!&6 • 2014(
,3- ."-2 • 2016( ) 3- WEB2 • Ruby on Rails • Vue.js / Angular / React • SpringBoot (Java) • - 70 2 Twitter: @midwhite Qiita: @takano-h
MatchLab 3
• 3BJMT 7VFKTΛͬͯʮ.BUDI-BCʯΛ ̍ϲ݄ͰϑϧϦχϡʔΞϧͨ࣌͠ͷ͓ • 3BJMT৽ػೳͷ "DUJWF4UPSBHF ΛΘͳ͔ͬͨ
• 7VFY Λͬͨ࣌ͷίϯϙʔωϯτׂͷ • 4FSWJDF8PSLFS Ͱϓογϡ௨ػೳΛ࣮ͨ͠ 4
.&,4/FA • )1 -*3 <:?6 !4'" ;@## • (13$3%(04+24>7
G9B>7 RailsCSRF=E5D H • 8G6C I 5
CPV; • 2)2 (\Rails 5.2 (API Mode) ◦ Rails 5.1
>7 webpacker 5 Vue CLI5 ◦ CSRF=K=A Y6 protect_from_forgery O:Bearer'21SR EI • ,01'1(\Vue.js + Vuex + VueRouter ◦ Vue.js: React H;M .#%(-0*&3LDF BU Angular (TypeScript) HWJ"+2(X?[ ◦ Vuex: React Redux HX?!1-/Store*$21<Q ◦ Facebook OAuth01GN TZ 8@SDKGraph API9I4 6
ActiveStorage 7
• Rails 5.2 PRY • -!3&+46%=ERYUIQF[RY • DB-!3LC=E )6.32]A
◦ active_storage_attachments: GK 1*354$6,LC-!3LC/216- (#`^9 4$6,=E )6.3 ◦ active_storage_blobs: -!3Z:0'LC=E )6.3 ◦ 7X ActiveRecord VM 1*3 81*3`^9 -> N+1BaG? eager_loading GK • -!3=E> DiskS3GCP_N • ImageMagick @T OD5WHRYbmini-magick<Ec ;\ mini-magick Rails 6 *-"3+JS 555 ActiveStoraged 8
ActiveStorage%*/10&( 1. rails active_storage:install %)/1)0 2. storage.yml+$/4)0 3. aws-sdk-s3
/1)0 4. application.rb / environments !' +$/1)0 5. model .- has_one_attached / has_many_attached ,"/1)0 6. #attach(file) # /1)0 9 ࠷ߦͰΞοϓϩʔυػೳΛ࣮ྃ
• !$(" url_for '' &-URL1 • $ 5)2,*#%URL./
ActiveStorage +0354$ 10
• 7GB9; • -/ ,IC@5.$!%@5Disk06>A@5S306 2=8< • ActiveRecord
create / update )"#&1 params[:file] E H #(-/& • ActiveStorage4?JavaScript*'*+D:#(-/&API 3 ActiveStorageF 11
ActiveStorageL; • keyJDIFCS336+*"4$+2.1)+. #38 • url_for /3-60'), controller /
view 7 9 • CloudFront P Q:,0#5BA?EG • URL<R TN. #3!$&% 5=SK>2(#4$+URL MO H@U 12
"& • '! ( DBS3 • aws-sdk-s3
$ # % 13
Vuex 14
-/ 15 • *0+ ' -/ • store #&.
prop #&$ 1 %" )!,(2
ServiceWorker 16
ServiceWorkerPWA 17 • API
• \saTXV • k?.%75:-Q • self %;9;. ServiceWorkerGlobalScope p$0(#& -
&*) Service Worker API Ad • window location document $0(#&-OK v • /",!0 18ZidnyloQ w1+'7rf firebase /",!0H m=Fg x • install activate Pj^CE btNIU • %6+'7_h> Network XHR `LcY • @)32WJ 1+'7rfR \ XD • <S2;4euqB manifest.json M]G[ XV 18
48 19 • 7/)!% %* , .9'3 ☆&2+ ☆
https://app.match-lab.com • 609-:(;#"6$☆ https://www.match-lab.com/cafecon/ • 15 ☆