Skip to content

yahilmadakiya/react-theme-with-wpgraphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Bloging App Using React and GraphQL ⚡

Demo 🎥

Getting Started 🏄

These instructions will get you a copy of the project up and running on your local machine for development purposes.

Installing 🔧

  1. Clone this repo in git@github.com:yahilmadakiya/react-theme-with-wpgraphql.git
  2. cd react-theme-with-wpgraphql
  3. npm install

Configure Backend( WordPress site ) 🔧

Add GraphQl support on WordPress

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

Configure Front end 🔧

  • Rename client-config-example.js to client-config.js inside src directory and update your React Site URL
const config = {
	siteUrl: 'http://localhost:3000',
	graphqlUrl: 'http://localhost:8080/graphql',
};

Commands 💻

  • npm run start Runs the node server in development mode

License 📃

This project is licensed under the MIT License - see the LICENSE.md file for details

Releases

No releases published

Packages

No packages published