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
はじめてのスタティックサイト ジェネレーター.
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
DigitalCube Inc.
April 03, 2019
Technology
2.6k
0
Share
はじめてのスタティックサイト ジェネレーター.
スタティックサイト ジェネレーターの概要やGatsbyのチュートリアル、 スタティックサイト ホスティング「surge」や「Netlify」へのデプロイについての紹介。
DigitalCube Inc.
April 03, 2019
More Decks by DigitalCube Inc.
See All by DigitalCube Inc.
ISMSを3ヶ月で爆速取得したプロジェクトマネジメントのコツ
digitalcube
0
540
地方の零細企業が AWS MarketPlace 使って10年どうだった?
digitalcube
0
1.1k
[株式会社デジタルキューブ] 会社概要
digitalcube
1
9.4k
[4/7 開催] Shifter オンラインミートアップ!春のフレッシャーズ祭り
digitalcube
0
710
WordPress のフルサイト編集を使ったサイト作成と Shifter を使ってノーコードで安全なサイトを運用する
digitalcube
0
930
Shifter の基本と最新情報
digitalcube
0
230
[12/10 開催] Shifter オンラインミートアップ!
digitalcube
0
110
Snow Monkey での 自社サービスサイト構築事例
digitalcube
0
800
Shifter 新ダッシュボード 3 つのポイントをご紹介
digitalcube
0
520
Other Decks in Technology
See All in Technology
Even G2 クイックスタートガイド(日本語版)
vrshinobi1
0
190
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
77k
Databricks Appsで実現する社内向けAIアプリ開発の効率化
r_miura
0
230
Babylon.js Japan Activities (2026/4)
limes2018
0
150
OPENLOGI Company Profile
hr01
0
83k
不確実性と戦いながら見積もりを作成するプロセス/mitsumori-process
hirodragon112
1
180
推し活エージェント
yuntan_t
1
430
Databricks Lakebaseを用いたAIエージェント連携
daiki_akimoto_nttd
0
120
ThetaOS - A Mythical Machine comes Alive
aslander
0
240
パワポ作るマンをMCP Apps化してみた
iwamot
PRO
0
290
AIエージェント時代に必要な オペレーションマネージャーのロールとは
kentarofujii
0
290
Tour of Agent Protocols: MCP, A2A, AG-UI, A2UI with ADK
meteatamel
0
200
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
800
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
260
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
99
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
84
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
Building AI with AI
inesmontani
PRO
1
840
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
160
Leo the Paperboy
mayatellez
6
1.6k
The Invisible Side of Design
smashingmag
302
51k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
How to build a perfect <img>
jonoalderson
1
5.3k
Transcript
͡ Ίͯͷ ε λ ςΟ ο Ϋ αΠ τ
δΣ ω Ϩ ʔ λ ʔ S E I J I A K AT S U K A D I G I TA L C U B E C O . LT D .
W K J + C S M D I G
I TA L C U B E W H O A M I ? S E I J I A K AT S U K A amimoto-ami.com getshifter.io
• What’s Static Site Generatorʁ • Try Gatsby • What’s
Static Site Hosting? Agenda
W H AT ’ S S TAT I C S
I T E G E N E R AT O R ʁ
ͲΜͳͷʁ •֤ݴޠϥΠϒϥϦʹΑΔςϯϓϨʔτΤϯδϯ͔ΒJavaScriptͱ APIͰಈతͳσʔλίϯςϯπΛѻ͏੩తαΠτ͕࡞Ͱ͖ΔϏϧυ πʔϧ •δΣωϨʔλʔ͝ͱͷެࣜαΠτίϛϡχςΟ͕ެ։͍ͯ͠Δ ͷΛར༻͢Δ͔ΧελϚΠζͯ͠ར༻
ಛ • ϓϩδΣΫτgitͰཧ • CLIத৺ͰγϯϓϧʹߏஙͰ͖ΔڥͰͲ͜ͰͰ։ൃͰ͖Δ • αʔόʔαΠυͷߏWebCDNͷΈ S3SaaSར༻ͳͲαʔόʔෆཁͳબࢶ • ݕࡧϑΥʔϜͳͲJavaScript֎෦࿈ܞΛ׆༻
• σϓϩΠΞτϛοΫʹߦ͏
ͲΜͳͷ͕͋Δʁ https://www.staticgen.com • 250छྨۙ͘ܝࡌ • ࣮͍ͯ͠Δݴޠ • ςϯϓϨʔτͷݴޠ
T RY G AT S B Y
• ReactͷελςΟοΫαΠτ δΣωϨʔλʔ • HTML / CSS / JavaScript /
React.js / GraphQLͰߏ • WordPress, ϦϙδτϦ্ͷϑΝΠϧ, Markdown, API, Database, YamlͳͲ Λಉ͡ΠϯλʔϑΣʔεͰσʔλιʔεʹͰ͖Δ ࢀߟɿhttps://wp-kyoto.net/gatsbyͰwordpress-siteͷϑϩϯτΤϯυΛ࡞ͬͯΈΔ • ੩తHTMLReactͷSPAͱͯ͠ͷҐஔ͚
https://github.com/gatsbyjs/gatsby • ੩తαΠτͷϦιʔεͷσʔλऔ ಘʹGraphQLΛ༻ WordPress, S3, Firesore, etc… • GraphQLαʔόʔෆཁ
σʔλιʔεʹϓϥάΠϯͰରԠ Gatsby on GraphQL
Show case https://www.gatsbyjs.org/showcase/
1. ։ൃڥͷηοτΞοϓ Install Node.js, Install Git, Using the Gatsby CLI
2. Gatsby αΠτͷ࡞ $ gatsby new [SITE_DIRECTORY_NAME] [URL_OF_STARTER_GITHUB_REPO] σΟϨΫτϦͷ࡞ͱςϯϓϨʔτྨͷऔಘ 3. gatsby developίϚϯυͰαʔόʔىಈ $ gatsby develop ʮhttp://localhost:8000ʯͰϗοτϦϩʔυ͠ͳ͕Βߏங Hello world ʹτϥΠ https://www.gatsbyjs.org/tutorial/part-zero/
Edit, Preview (src/pages/index.js)
• ੩తϑΝΠϧΛδΣωϨʔτ gatsbyίϚϯυͰsrc/publicԼͷjsϑΝΠϧ͔ΒHTMLΛੜ $ gatsby build • ελςΟοΫαΠτ ϗεςΟϯάʮsurge.shʯʹσϓϩΠ $
npm install --global surge (SuegeͷϑϦʔΞΧϯτΛొ) $ surge public/ (σϓϩΠ) ΞΫηεՄೳͳURL͕දࣔ͞ΕΔ Go live via surge!
W H AT ’ S S TAT I C S
I T E H O S T I N G ?
SurgeͬͯͳΜͩʁ https://surge.sh/pricing • ελςΟοΫαΠτ ༻ͷϗε ςΟϯάαʔϏε • ແྉͰSSL (ఏڙ͞ΕΔURL) ΧελϜυϝΠϯ(Not
ssl)ʹର Ԡ • CLI (surgeίϚϯυ)Ͱૢ࡞
ελςΟοΫαΠτ ϗεςΟϯάͷछྨ https://www.slant.co/topics/2256/~best-static-website-hosting-provider#1 1. HostingͷΈ GitHubPagesGitLabPages Amazon S3 /
EC2 / VPS ͳͲ 2. Ϗϧυ, σϓϩΠ, ϗεςΟϯά Netlify (GitHub / GitLab / Bitbucket) 3. CMS, Ϗϧυ, σϓϩΠ, ϗεςΟϯά Netlify CMS , forestry.io, 4. All in One, Full Web UI for WordPress Shifter WordPressͷ੩తԽ͔ΒGlobal CDN·Ͱ
1. GitHub, GitLab, BitbucketΞΧϯτΛ༻ҙ 2. NetlifyͷΞΧϯτΛ༻ҙ GitHub, GitLab, BitbucketͰϩάΠϯՄೳ 3.
NetlifyʹϦϙδτϦΛඥ͚ σϓϩΠίϚϯυʮGatsyby buildʯ ެ։σΟϨΫτϦʮpublic/ʯ 4. ϦϙδτϦʹcommit & push Netlify͕δΣωϨʔτͯ͘͠ΕΔͷͰศར 5. That’s it! gatsby-cliΛ͏߹ͪ͜ΒΛࢀর A Step-by-Step Guide: Gatsby on Netlify ͓·͚ Go live via Netlify!
• ඪ४ػೳ Global deployment, right from Git HTTPS, custom domains,
DNS management • CDNͷଳҬɿ100GB/݄ • Ϣʔβʔɿ1໊ • OrganizationɿProҎ্ • ύεϫʔυϩάΠϯɿProҎ্ • ACLɿBusinessҎ্ • Audit log ɿBusinessҎ্ Free usage
Less Is More. Let's go static with Shifter. • ΑΓྑ͍ύϑΥʔϚϯε
(Static HTML + CDN) • ΑΓߴ͍ηΩϡϦςΟ (Micro services archtechture) • ΑΓ҆ՁͰ؆୯ͳεέʔϦϯά (No ops) • ΑΓྑ࣭ͳ։ൃऀΤΫεϖϦΤϯε (Cool, Clean architecture, Community friendly)
T H A N K S !