Skip to content

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

WooCommerce With React JS

This demo for "Simple Product" with login user so please check below step and configure accordingly.

You can get all required plugins here.

Getting Started

define( 'GRAPHQL_JWT_AUTH_SECRET_KEY', 'your-secret-token' );
  • Add below filters if you want to increase expire limit for login.
function custom_jwt_expiration( $expiration ) {
	return 86400; // Second for 1 day
}
add_filter( 'graphql_jwt_auth_expire', 'custom_jwt_expiration', 10 );
  • Clone main branch and run below command for install packages & run project.
npm install
npm start
  • Create ".env.development.local" file in root & add graphql url with same name of variable.
REACT_APP_GRAPHQL_URL = http://localhost/graphql