Skip to content
[OUTDATED] Most of the work here has been merged in to SivlerStripe core as part of the Injector API. ~Help get started with GraphQL and React in SilverStripe by providing helpers and a standard build to get you hitting the ground running~
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config Fix todos casing in list Jun 24, 2017
client/src
src
templates/Flamerohr/Todo/Controllers Initial commit - includes a TodoList which loads from graphql Jun 11, 2017
.editorconfig Initial commit - includes a TodoList which loads from graphql Jun 11, 2017
.eslintrc Initial commit - includes a TodoList which loads from graphql Jun 11, 2017
.gitignore
.htaccess Initial commit - includes a TodoList which loads from graphql Jun 11, 2017
README.md Tweak createMutationCreator Oct 6, 2017
_config.php Initial commit - includes a TodoList which loads from graphql Jun 11, 2017
composer.json Initial commit - includes a TodoList which loads from graphql Jun 11, 2017
package.json
webpack.config.js

README.md

SilverStripe GraphQL-React-Boilerplate

Help get started with GraphQL and React in SilverStripe by providing helpers and a standard build to get you hitting the ground running.

This relies on the GraphQL module built for SilverStripe, utilising the DataObject Scaffolding feature that is provided.

Getting started:

Install the module with composer, be prepared to just remove or disable all the todo examples provided

composer require flamerohr/silverstripe-graphql-react-boilerplate

You'll then need to install node (version 6 or later) and yarn, please search for how and come back after.

Note before use

This module presents a way to create a single page app within a section of your website. It can be your entire website including the root index but for the purposes of demonstration, this keeps things more simple.

It's important to note that this is designed to be cherry picked apart, to choose the parts that you need quickly and easily to get started.

How it works

...to be written...

Roadmap

  • Create Reducer for todos
  • Hook GraphQL queries/mutations to store results to redux
  • Forms for create/edit
  • Proper list for Todo items
  • Improve documentation
You can’t perform that action at this time.