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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Takahiro Tsuchiya
July 30, 2018
Programming
580
1
Share
Awesome Nuxt.js
Vue.js Night Nagoya #1でNuxt.jsの紹介をしました。
Takahiro Tsuchiya
July 30, 2018
More Decks by Takahiro Tsuchiya
See All by Takahiro Tsuchiya
PicoRubyでLチカ
corocn
0
180
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
13
8k
現場のエンジニアから見た採用担当との協働
corocn
7
3.2k
シリーズAをリファラル採用中心に走り抜ける / leaner-referral-engineer-2024
corocn
4
2.4k
捨てて加速するプロダクト開発 / sutete-speedup-product-development
corocn
4
790
リファラル採用にフルベットしてみた
corocn
4
4k
エンジニアとプロダクトマネージャーを兼任した1年間を振り返る / pdm-furikaeri
corocn
17
8.3k
育休のすゝめ #devsumi 2023
corocn
3
5.4k
GCPでRubyを動かしている話 / ruby on gcp
corocn
0
1k
Other Decks in Programming
See All in Programming
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
300
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
1.8k
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
290
今さら聞けないCancellationToken
htkym
0
200
inferと仲良くなる10分間
ryokatsuse
1
280
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
130
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
400
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
130
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
320
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
310
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
240
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
230
Featured
See All Featured
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
300
The SEO identity crisis: Don't let AI make you average
varn
0
480
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
520
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
160
How GitHub (no longer) Works
holman
316
150k
Skip the Path - Find Your Career Trail
mkilby
1
130
Bash Introduction
62gerente
615
210k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Amusing Abliteration
ianozsvald
1
190
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
210
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
αΠτ੍࡞Ͱ ΞϓϦέʔγϣϯ։ൃͰ ͍͖ͬͯ·͠ΐ͏ʂ
͋Γ͕ͱ͏͍͟͝·ͨ͠