ramsaylanier / WordExpress-Server

A GraphQL server that connects to a WordPress database

Home Page:http://wordexpress.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordExpress-Server

A GraphQL server that connects to a WordPress database

WordExpress-Server is an GraphQL server that uses WordExpressSchema to provide you with a GraphQL endpoint that your client application can use to query a WordPress database. All you need to do is provide connection details to your WordPress database (see below). Refer to the WordExpress documentation for more information.

Setup

$ npm install
$ npm run start

Using the /config/sample-config.json as a template, create a development.json and production.json config file. These files will contain the connection details to your development and production WordPress databases, respectively.

Extending the Schema

This repo currently has a few examples of how you can extend the WordExpressSchema to provide custom queries and resolvers. These examples are in the /extensions directory.

About

A GraphQL server that connects to a WordPress database

http://wordexpress.io


Languages

Language:JavaScript 100.0%