WPGraphQL.com is a Gatsby site that uses WordPress as the CMS.
This repository contains the Gatsby code to source data from WordPress and create pages using WordPress data.
To run the site locally, copy .env.example
to .env.development
and set the contents to:
SITE_URL=http://localhost:8000
WPGRAPHQL_URL=https://content.wpgraphql.com/graphql
Then run yarn
or npm install
to install dependencies.
Then run gatsby develop
to run the site.