This boilerplate has been slightly modified to integrate with an existing WordPress setup that has both the GraphQL and GraphQL JWT plugins installed. It works by using JWTs to authenticate users' login.
- Must have an existing WordPress site with the WP GraphQL (https://github.com/wp-graphql/wp-graphql) and WP GraphQL JWT-Auth (https://github.com/wp-graphql/wp-graphql-jwt-authentication) plugins installed and activated.
- Git clone https://github.com/jkhaui/GraphPress
- Change the URLs in the index.js file. There are two URLs to change: 1) the graphQL endpoint (https://yourWPsite.com/graphql), and 2) the websockets URL (ws://yourWPsite.com/graphql).
- yarn install && yarn start
**Work in progress.. Working on a much larger boilerplate which authenticates users and queries large amounts of data from a GraphQL API.