Giter Site home page Giter Site logo

galtenberg / relay-rails-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gauravtiwari/relay-rails-blog

0.0 0.0 0.0 799 KB

A graphql, relay and standard rails application powered demo weblog. We are using Graphql server and relay for our react component data needs.

Home Page: https://relay-rails-blog.herokuapp.com/

Ruby 37.90% CoffeeScript 0.76% JavaScript 14.14% CSS 37.28% HTML 9.89% Shell 0.04%

relay-rails-blog's Introduction

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

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

It's a work in progress and this repository will update as we move further with this application. The intention is to explore the integration to stage where we can get a clear understanding about these two new technologies and how they might fit in a real world application and framework.

Status

Currently, the application supports reading and creating data from and on server.

Tutorial:

  1. Introduction: https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-getting-started-955a49d251de
  2. Part1: https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-creating-types-and-schema-b3f9b232ccfc#.6micmekh2
  3. Part2: https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-first-relay-powered-react-component-cb3f9ee95eca#.ssisfzsm0
  4. Part3: https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-dynamic-component-rendering-2be4e208ef92#.gvw5kevg1
  5. Part4 https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-authentication-and-authorisation-f7c07ebb47b3#.2y1h14x2p

Current features

  • List posts
  • List comments of the posts
  • Infinite Scroll - posts and comments
  • Show author info, votes and comments count
  • Live Query editor to run graphql queries
  • Mutations to create comments and votes

Demo Links

Resources

  • Facebook Relay: Official relay docs
  • GraphQL: Official GraphQL spec
  • graphql-ruby & graphql-relay-ruby: For defining GraphQL schema and Relay implementation in Ruby GraphQL classes, and getting Rails to speak GraphQL.
  • browserify-rails: Command-line options required to do transpilation, e.g., —plugin, etc.

TODOs

Running locally

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

git clone [email protected]:gauravtiwari/relay-rails-blog.git
cd relay-rails-blog
npm install
./start (from terminal). If you get permission error, just do chmod 777 start

relay-rails-blog's People

Contributors

gauravtiwari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.