northstack / gatsby-wordpress-twenty-nineteen

A re-creation of the WordPress Twenty Nineteen theme in Gatsby, using WordPress/WPGraphQL as a backend. Non-production example code.
GNU General Public License v3.0
41 stars 5 forks source link

Proof of Concept - Gatsby + Headless WordPress + Twenty Nineteen

An example site using that uses Gatsby and a headless WordPress installation to re-create the Twenty Nineteen theme.

Note: This is entirely intended to be a proof of concept/example of how Gatsby can be used to create a frontend for WordPress. It is not checked for stability or security (or even code quality), so use it at your own risk.

Features

To-Do

Requirements

Usage

Once again, this isn't intended to be a production-ready example. It's best used as a starting point for learning how to connect a WordPress backend to a Gatsby frontend. If you want to build it, do this:

  1. Clone the repo.
  2. Rename config.example.js to config.js.
  3. Modify config.js to point to your WordPress site as the source.
  4. Run npm install
  5. Run gatsby develop
  6. Navigate your browser to http://localhost:8000
  7. Use it to build your own Gatsby frontend for your WordPress site.

Attribution/Acknowledgments