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
Awesome Nuxt.js
Search
Takahiro Tsuchiya
July 30, 2018
Programming
1
530
Awesome Nuxt.js
Vue.js Night Nagoya #1でNuxt.jsの紹介をしました。
Takahiro Tsuchiya
July 30, 2018
Tweet
Share
More Decks by Takahiro Tsuchiya
See All by Takahiro Tsuchiya
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
11
6.4k
現場のエンジニアから見た採用担当との協働
corocn
7
3k
シリーズAをリファラル採用中心に走り抜ける / leaner-referral-engineer-2024
corocn
4
2.2k
捨てて加速するプロダクト開発 / sutete-speedup-product-development
corocn
3
710
リファラル採用にフルベットしてみた
corocn
3
3.9k
エンジニアとプロダクトマネージャーを兼任した1年間を振り返る / pdm-furikaeri
corocn
17
8.1k
育休のすゝめ #devsumi 2023
corocn
3
5k
GCPでRubyを動かしている話 / ruby on gcp
corocn
0
950
フルリモートワーカーのデスク選定 / how-to-select-remote-work-desk
corocn
1
640
Other Decks in Programming
See All in Programming
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
230
概念モデル→論理モデルで気をつけていること
sunnyone
2
250
AIでLINEスタンプを作ってみた
eycjur
1
230
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
230
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
380
チームのテスト力を鍛える
goyoki
3
210
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
Android端末で実現するオンデバイスLLM 2025
masayukisuda
1
150
はじめてのMaterial3 Expressive
ym223
2
740
AI時代のUIはどこへ行く?
yusukebe
18
8.9k
アプリの "かわいい" を支えるアニメーションツールRiveについて
uetyo
0
270
🔨 小さなビルドシステムを作る
momeemt
4
680
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
530
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
It's Worth the Effort
3n
187
28k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
The Language of Interfaces
destraynor
161
25k
Statistics for Hackers
jakevdp
799
220k
Bash Introduction
62gerente
615
210k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
840
Transcript
Awesome Nuxt.js Vue.js Night Nagoya #1 2018/07/30ʢ݄ʣ Takahiro Tsuchiya /
@corocn
ࠓNuxt.jsͷ հΛ͠·͢
ϓϩϑΟʔϧ • @corocn / Takahiro Tsuchiya / و༟ • Application
Engineer @ Misoca Inc. • https://www.misoca.jp/ • Auth0 Ambassador • https://auth0.com/
Nuxt.js • Vue.jsͰWebsite / Web ApplicationΛ࡞Δͨ ΊͷFramework • ಡΈํʮnʌkstʯͰφΫετ •
https://github.com/nuxt/nuxt.js ⭐13784 • https://nuxtjs.org/
ಛ •SSRʢαʔόʔαΠυϨϯμϦϯάʣରԠ • SEOରࡦʢΫϩʔϥʔରࡦʣ • ॳճͷදࣔͷ্ • ΞΠσΞNext.jsʢReactʣ͔Β • SPAʢSingle
Page Applicationʣ։ൃͰ༗ೳ
ΈࠐΈࡁϥΠϒϥϦ • VueʢCoreʣ • Vue-RouterʢRoutingʣ • VuexʢState Managementʣ • WebpackʢBundlerʣ
• Vue Server RendererʢSSRʣ • Vue-MetaʢMeta Tagʣ SPA SSR, SEO
͍͍ͱ͜Ζ
։ൃͷΓग़͕͠ ͱʹ͔͍͘
͍ํ
ॳظԽˠ্ཱͪ͛ • ςϯϓϨʔτΛͬͯॳظԽ • $ vue init nuxt-community/starter-template my-project •
※ v1.0.0ϕʔε͔ͩΒҙʂ • ϞδϡʔϧೖΕΔ • $ cd my-project && yarn install OR npm install • ্ཱͪ͛ • $ yarn dev
ϙʔτม͑ΕΔ RailsͱόοςΟϯά͢ΔͷͰΑ͘ม͑Δ
None
্ཱͪ͛·Ͱ 1͔͔Βͳ͍
ߏΛݟ͍ͯ͘
ߏ Ϗϧυ݁Ռ ஔ͚ͩ͘Ͱ Page͕Ճ͞ΕΔ ઃఆ
ઃఆ / nuxt.config.js ઃఆ΄΅͜ͷϑΝΠϧΛ࿔Δ
ϖʔδΛՃ͢Δ
PagesҎԼʹSFC※Λஔ͘ pages/hoge.vueΛ࡞Δͱɾɾɾ ※ Single File Component
දࣔ͞ΕΔ ϑΝΠϧ໊͔Β ϧʔςΟϯά͕ ࣗಈੜ͞ΕΔʂ .nuxt/router.js ʹग़ྗ݁Ռ
ઃఆΑΓن Railsͷເ͕ݟ͑Δ
ΤίγεςϜΛࢧ͑Δ Modules
https://github.com/ nuxt-community/awesome-nuxt
Ϗϧυ
SSR͢Δ߹ • yarn build → start Ͱαʔόʔ্ཱ͕͕ͪΔ • yarn generate
Ͱ੩తϏϧυग़ྗ • ੩తϏϧυ࣌distҎԼʹग़ྗ͞ΕΔ
SPAͷ߹ • mode: ‘spa’ • yarn build Ͱ੩తϑΝΠϧग़ྗ͞ΕΔ
࠷ۙͷར༻ࣄྫ
https://note.mu/konpyu/n/ n9b7bf4343514
https://twitter.com/fladdict/status/ 803382240076070913
υΩϡϝϯτ
• Vue.jsಉ༷ʹ΄΅༁͞Ε͍ͯΔ ☺ ༁ঢ়گ
Φεεϝͷຊ https://booth.pm/ja/items/824745
ϘΫͷຊͰͬͨ https://booth.pm/ja/items/830458
͏͙͢v2͕ ϦϦʔε͞ΕΔͧʂ
None
αΠτ੍࡞Ͱ ΞϓϦέʔγϣϯ։ൃͰ ͍͖ͬͯ·͠ΐ͏ʂ
͋Γ͕ͱ͏͍͟͝·ͨ͠