Skip to content
A graphql, relay and standard rails application powered demo weblog. We are using Graphql server and relay for our react component data needs.
Branch: master
Clone or download
Latest commit 105ea17 Mar 6, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Add max complexity Mar 6, 2017
bin Lint code with rubocop Mar 6, 2017
client Fix minor indentation issue Feb 12, 2017
db Lint code with rubocop Mar 6, 2017
Gemfile Add some basic authorisaion using cancancan Mar 6, 2017
Gemfile.lock Add some basic authorisaion using cancancan Mar 6, 2017
Procfile Remove server process Mar 15, 2016 Upgrade webpack configuration Mar 15, 2016
package.json Add yarn.lock Oct 17, 2016
start Remove browserify and sprockets related code Feb 20, 2016

Demo blog application powered by Rails, react, graphql and Relay.

This blog is an exploration exercise to understand two new technologies - GraphQL and Relay. We are using standard rails application together with webpack for handling front-end dependencies.


Application supports reading and creating data from and on server using GraphQL.


  1. Introduction:
  2. Part1:
  3. Part2:
  4. Part3:
  5. Part4
  6. Part5 - Integrating Webpack with react-on-rails
  7. Final - Wrap up

Current features

  • List posts
  • List comments of the posts
  • Infinite Scroll - posts and comments
  • Show author info, votes and comments count
  • Mutations to create comments and votes
  • Edit and Update comments
  • Create and Delete posts
  • Add a react native app

Demo Links



Running locally

To run the application, please just clone the repo and run it like so:

git clone
cd relay-rails-blog
bundle install
npm install
./start (from terminal). If you get permission error, just do chmod 777 start
You can’t perform that action at this time.