Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 650 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 650 Bytes

Headless WordPress App with GraphQL

This repository shows how to create a WordPress Single Page Application with React & Apollo Client. In order to connect to WP data, it uses the WPGraphQL plugin.

Setup

Change the configuration file in src/Config.js to poing to your WordPress instance using the property: wordpressUrl.

const Config = {
  wordpressUrl: 'http://localhost:5010/',
  graphqlEndpoint: 'graphql'
};

Make sure your WordPress instance has the lastest version of the WPGraphQL plugin installed and activated.

Run the front-end app:

npm install
npm run serve