These instructions will get you a copy of the project up and running on your local machine for development purposes.
- Clone this repo in
git@github.com:yahilmadakiya/react-theme-with-wpgraphql.git
cd react-theme-with-wpgraphql
npm install
Clone and activate the following plugins, in your WordPress plugin directory:
- wp-graphql Exposes graphql for WordPress
- wp-graphiql Provides GraphiQL IDE (playground) to the WP-Admin
- Rename
client-config-example.js
toclient-config.js
insidesrc
directory and update your React Site URL
const config = {
siteUrl: 'http://localhost:3000',
graphqlUrl: 'http://localhost:8080/graphql',
};
npm run start
Runs the node server in development mode
This project is licensed under the MIT License - see the LICENSE.md file for details