17
講師 程田 和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled Drupal Camp Tokyo 2019 1

Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

講師 程田 和義

Reactのフロントエンドが簡単に作れるGatsbyJSの紹介

2019年12月14日 API-First Decoupled Drupal Camp Tokyo 2019 1

Page 2: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

Gatsbyとは

2

Reactベースのオープンソースフレームワーク

Reactベースの静的ジェネレータシングルページアプリケーション向け

React公式サイトで採用

静的サイトおよびCMSのリソースデータ取得にGraphQLを採用

https://www.gatsbyjs.org/

Page 3: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

Gatsbyの動作

3

ローカルな静的ファイルやContentful、WordPress、DrupalなどのWebAPIを通じて、GraphQLによるデータ連携が可能

ページごとの必要なデータをGraphQLのクエリで連携

Gatsby内でGraphQLスキーマ処理

https://www.gatsbyjs.org/

Page 4: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalのチュートリアル

4

ユーザー登録してマニュアルを参照

https://gatsbyguides.com/

Page 5: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalのチュートリアル

5

ユーザー登録してマニュアルを参照

https://gatsbyguides.com/

Page 6: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報1

6

Decoupled Drupal + Gatsby: Automating Deployment

https://atendesigngroup.com/blog/decoupled-drupal-gatsby-automating-deployment

Page 7: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報2

7

Sourcing from Drupal

https://www.gatsbyjs.org/docs/sourcing-from-drupal/

Page 8: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報3

8

Example site that demonstrates how to build Gatsby sites that pull data from the Drupal

https://github.com/gatsbyjs/gatsby/tree/master/examples/using-drupal

デモサイト

https://using-drupal.gatsbyjs.org/

Page 9: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報4

9

Integrating Headless Drupal with Gatsby (JSON:API)

https://www.qed42.com/blog/integrating-headless-drupal-gatsby-jsonapi

Page 10: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報5

10

GatsbyJS Plugin Alert -Simplify data navigation

https://www.qed42.com/blog/gatsbyjs-plugin-alert-simplify-data-navigation

Page 11: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報6

11

Creating Lists of content with Gatsby and Drupal - Daily Dose of Gatsby Episode 4

https://www.youtube.com/watch?v=mu0T7Rae53c

Gatsby & Drupal

https://www.youtube.com/watch?v=gzmvZvItRR8

Embracing the modern web using Drupal as a Headless CMS with Gatsby

https://www.youtube.com/watch?v=JKuyeBrY_jc

Page 12: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報7

12

Decoupled Drupal + Gatsby

https://www.youtube.com/watch?v=fx2Qo3D47tI

Decoupling Drupal with Gatsby

https://www.youtube.com/watch?v=s5kUJRGDz6I

Page 13: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報8

13

Decoupled Drupal: Getting Started with Gatsby and JSON:API

https://www.lullabot.com/articles/decoupled-drupal-getting-started-gatsby-and-jsonapi

Page 14: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報9

14

Decoupling Drupal with Gatsby

https://evolvingweb.ca/blog/decoupling-drupal-gatsby

Page 15: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報10

15

Using Gatsby with Drupal

https://www.gatsbyjs.com/guides/drupal/

Page 16: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

GatsbyとDrupalの情報11

16

Joe Shindelar’s 2018 Drupal Europe slides on Gatsby + Drupal

https://www.dropbox.com/s/011m274y9uoey8v/gatsby-and-drupal_drupaleurope.pdf?dl=0

Page 17: Reactのフロントエンドが簡単 に作れるGatsbyJS...講師 程田和義 Reactのフロントエンドが簡単 に作れるGatsbyJSの紹介 2019年12月14日 API-First Decoupled

ありがとうございます。ご質問!

17