Coder Social home page Coder Social logo

digitalhydra / gatsby-wordpress-twenty-nineteen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from northstack/gatsby-wordpress-twenty-nineteen

0.0 1.0 0.0 395 KB

A re-creation of the WordPress Twenty Nineteen theme in Gatsby, using WordPress/WPGraphQL as a backend. Non-production example code.

License: GNU General Public License v3.0

JavaScript 11.54% CSS 88.46%

gatsby-wordpress-twenty-nineteen's Introduction

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

  • Post templates
  • Category archives
  • Author archives
  • Comments
    • Static (server side) comment rendering
    • Dynamic (client side) comment rendering
    • Comment submissions
  • Uses WPGraphQL

To-Do

  • General cleanup
  • Better comments
  • Comment replies
  • Pagination
  • Gravatars/user icons

Requirements

  • NodeJS/NPM
  • Gatsby CLI
  • A WordPress installation with the WPGraphQL plugin installed and activated

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

  • This example uses CSS from WordPress' Twenty Nineteen theme, which is licensed under the GNU General Public License v2 or later.
  • Thanks to WPGraphQL for making a great GraphQL plugin for WordPress.
  • Shoutout to Gatsby for making an awesome static site generator.

gatsby-wordpress-twenty-nineteen's People

Contributors

jeffmatsonpagely avatar digitalhydra avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.