Simple setup to use new Graphql client: Apollo (https://github.com/apollostack/apollo-client) with Rails asset pipeline using webpack
with a few helpers for dynamic react rendering. The relay version is available here https://github.com/gauravtiwari/relay-rails-blog
Check out the app/assets/javascripts
folder
components: Contains all react components splitted in directories (same namespace as rails views)
components.js: components manifest
- React with ES6 syntax
- Graph Server built on Rails using:
graphql-ruby
gem - Graphql client: Apollo (https://github.com/apollostack/apollo-client)
- Babel transpiler
- NPM support
git clone git@github.com:gauravtiwari/apollo_on_rails.git
cd apollo_on_rails
bundle install
npm install
chmod 777 start
./start
# Or Alternatively
bundle exec foreman start