Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wp-graphql/gatsby-wpgraphql-blog-example
Demo showing how to use WPGraphQL as the source for Gatsby Sites
https://github.com/wp-graphql/gatsby-wpgraphql-blog-example
gatsby gatsby-sites graphql node react wordpress wpgraphql
Last synced: 3 months ago
JSON representation
Demo showing how to use WPGraphQL as the source for Gatsby Sites
- Host: GitHub
- URL: https://github.com/wp-graphql/gatsby-wpgraphql-blog-example
- Owner: wp-graphql
- License: mit
- Archived: true
- Created: 2019-01-08T01:54:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-05T20:48:31.000Z (over 2 years ago)
- Last Synced: 2024-10-29T22:37:52.320Z (3 months ago)
- Topics: gatsby, gatsby-sites, graphql, node, react, wordpress, wpgraphql
- Language: JavaScript
- Homepage: https://gatsby-wpgraphql-blog-example.netlify.com/
- Size: 6.91 MB
- Stars: 147
- Watchers: 11
- Forks: 37
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wordpress-gatsby - Gatsby + WPGraphQL Blog Example - Demo showing how to use WPGraphQL as the source for Gatsby Sites. (Starters / Video Tutorials)
README
# DEPRECATED
----
This repository serves as an example of how to build a Gatsby site using WordPress as the CMS, WPGraphQL as the API and Gatsby Source GraphQL as the data source.This example repo should no longer be considered "the best" way to use Gatsby and GraphQL anymore. Instead of using Gatsby Source GraphQL, we recommend using [Gatsby Source WordPress Experimental](https://github.com/gatsbyjs/gatsby-source-wordpress-experimental), which will soon become the official Gatsby Source WordPress.
You can read more about why previous versions of Gatsby Source WordPress and Gatsby Source GraphQL are not ideal, and why Gatsby is investing in the new Gatsby Source WordPress Experimental plugin in this WPTavern article: https://wptavern.com/new-gatsby-source-wordpress-plugin-now-in-beta
----
Gatsby + WPGraphQL Blog ExampleThis is an example Gatsby site using WPGraphQL as the source.
## WordCamp Talk
This repo was created specifically for showcasing the capabilities of WPGraphQL and how it can be used in many ways. One particular use is with GatsbyJS. The WordCamp talk this repo was created for can be seen here: https://wordpress.tv/2019/03/08/jason-bahl-building-static-sites-with-wordpress-gatsby-and-wpgraphql/## Setup
Quick video showing setup of the Gatsby site locally: https://www.youtube.com/watch?v=QkIuuZ5gZNk
## WordPress Source
The WordPress where the content is managed lives here: [https://demo.wpgraphql.com](https://demo.wpgraphql.com)
![Screenshot of the WordPress source site](./img/screenshot-demo.wpgraphql.com.png)
## Gatsby Site
The Live Gatsby site is at: [https://gatsby-wpgraphql-blog-example.netlify.com/](https://gatsby-wpgraphql-blog-example.netlify.com/)
![Screenshot of the Gatsby site](./img/screenshot-demo.gatsby-wpgraphql-blog-example.netlify.com.png)
### Features
Below are features of the Gatsby site that are all sourced via WPGraphQL Queries, so the data is
managed in WordPress, but is pulled into the Gatsby site and rendered there:- :white_check_mark: Menus
- :white_check_mark: Pages
- :white_check_mark: Paginated Blogroll/homepage
- :white_check_mark: Single Posts
- :white_check_mark: Authors
- :white_check_mark: Categories
- :white_check_mark: Tags