Skip to content

cygnusb2b/wordpress-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress GraphQL Server

Installation / Running

Note: Requires YARN and Docker with compose.

  1. Clone this repository
  2. Create a .env file in the project root and set the appropriate variables (see below)
  3. In the project root, run yarn start
  4. The GraphQL API is now available on http://localhost:5987/graphql

Environment Variables

API_URI=

# required only for writes
API_USERNAME=
API_PASSWORD=

See src/env.js for complete descriptions of each variable.

Developing

To add package dependencies (e.g. yarn add) you should do so within the Docker container.

  1. Run yarn start
  2. Once the container is running, from another terminal run yarn terminal - you should now be inside the docker container
  3. Run yarn add [package-name] or any other command from within the Docker terminal

About

A GraphQL wrapper for the Wordpress REST API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published