• Stars
    star
    140
  • Rank 260,005 (Top 6 %)
  • Language
    Ruby
  • Created almost 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

Status

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

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
  6. Part5 - Integrating Webpack with react-on-rails https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-moving-to-webpack-9c6a420b4eea#.60z7xg1j0
  7. Final - Wrap up https://medium.com/@gauravtiwari/graphql-and-relay-on-rails-wrap-up-500c67522cd2#.gt0b65fa7

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 https://github.com/gauravtiwari/graphql-blog-mobile

Demo Links

Resources

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
bundle install
npm install
./start (from terminal). If you get permission error, just do chmod 777 start

More Repositories

1

rails-webpacker

Rails on webpack and yarn with new webpacker gem. Multiple examples using react, vue and angular
Ruby
77
star
2

graphql-server-examples

Various example implementations of GraphQL server in many popular web frameworks
JavaScript
38
star
3

webpacker-example-app

An example app to demonstrate webpacker with Rails 5.1
Ruby
36
star
4

webpacker-react-frontend

An example frontend react app to demonstrate webpacker with Rails 5.1
Ruby
22
star
5

go_iris_app

A basic web app built in Iris web framework for Golang
Go
20
star
6

graphql-apollo-blog

An apollo version of the web blog built on relay and GraphQL
Ruby
19
star
7

browserify_on_rails

Browserify, ES6, React and Server rendering setup for Rails using browserify-rails and react-rails
Ruby
13
star
8

webpacker-api-frontend

Latest webpacker running with html webpack plugin
Ruby
6
star
9

webpacker-rails-api

Rails API only example with webpacker
Ruby
5
star
10

brunch_on_rails

Use Brunch with Rails asset pipeline to compile and render react on ES6 dynamically on runtime
JavaScript
4
star
11

vuejs_on_phoenix

Explore Vuejs with Phoenix (same app as vuejs_on_rails)
Elixir
4
star
12

react_on_elixir

Server render and mount react components on any elixir web application (WIP)
Elixir
4
star
13

graphql-sinatra-erb

Sinatra powered client app rendering data from GraphQL server
CSS
3
star
14

phoenix_turbolinks

Using Turbolinks with Phoenix
Elixir
3
star
15

webpack_on_rails

Webpack and React on Rails with server rendering using asset pipeline.
Ruby
3
star
16

hungryhead

Hungryhead is a collaborative network for students to share, validate and develop startup ideas with peers and mentors, supported by gamification.
HTML
3
star
17

graphql-relay-blog-rails5

A graphql, relay and rails powered weblog rebuilt on Rails5 with React on Rails Gem.
CSS
2
star
18

webpacker-vue

Webpacker Vue integration and demo
Ruby
2
star
19

graphql-blog-mobile

A native version of weblog powered by graphql, relay, react-native and rails.
JavaScript
2
star
20

webpacker-demo-app

Ruby
2
star
21

elixirV8

Embed the V8 Javascript Interpreter into Elixir
Elixir
2
star
22

webpacker-5.2-csp

A brand new webpacker app on Rails 5.2 with CSP
Ruby
2
star
23

first_app

Ruby on rails web application
Ruby
1
star
24

active_pubsub

Simple pub-sub message bus for Rails built on top of ActiveSupportNotifications
Ruby
1
star
25

turbolinks-rails-blog

Turbolinks/Turbograft 3, Action Cable and Rails Powered Blog to explore server side partial updates in real applications.
CSS
1
star
26

email_predictor

Simple email predictor console program
Ruby
1
star
27

fennec-core

IoT Platform with Dashboard application
Ruby
1
star
28

webpacker-rails-api-frontend

Frontend only example with webpacker without Rails
JavaScript
1
star
29

webpacker-react-loadable

An example webpacker app with react and react loadable
Ruby
1
star
30

rails5-demo

Ruby
1
star
31

rock_scissors_papers

Rock Scissors Papers Game built on Redis, Rails and Postgres
Ruby
1
star
32

explore-webpack

A series exploration exercises to understand Webpack
JavaScript
1
star
33

vuejs_on_rails

Explore Vuejs with Rails
Ruby
1
star
34

sample_app

Sample application in ruby and rails
Ruby
1
star