Skip to content

Sample React and PHP app using Graphql-PHP, Graphql-Relay-PHP, also includes GraphiQL interface.

License

Notifications You must be signed in to change notification settings

zenithtech/PHP-RGR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-RGR

PHP-React-GraphQL-Relay

This is a small React app, using graphql-php and graphql-relay-php, also includes graphiql interface.

##Example App interface: https://zenitht.com/git/PHP-RGR/public/

GraphiQL interface: https://zenitht.com/git/PHP-RGR/public/graphiql

##Using the GraphiQL interface

You can manually insert new links via the GraphiQL interface, for example, in the query field enter:

mutation CreateLinkMutation($input: CreateLinkInput!) {
  createLink(input: $input) {
    link {
      id
      title
      url
    }
  }
}

... and pass variables in the Query variables field:

{
  "input":
  {
    "clientMutationId": "1",
    "url": "http://github.com",
    "title": "Github.com Website"
  }
}

##Installation To run it locally, clone or download this repo to your server, then install the Composer packages:

composer install

Install the node packages via NPM:

npm install

Then run

webpack -wd

You'll also need a MongoDB instance.

License

This package is licensed under MIT license. See LICENSE for details.

About

Sample React and PHP app using Graphql-PHP, Graphql-Relay-PHP, also includes GraphiQL interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published