Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
/ wp-react-graphql Public archive

React front-end for Wordpress websites using GraphQL.

Notifications You must be signed in to change notification settings

nanlabs/wp-react-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

React front-end for Wordpress websites using GraphQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published