justin808 / hypernova_apollo_rails

Example of React + Apollo + Hypernova + Rails + Webpacker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails + Webpacker + React + Apollo + Hypernova SSR

Complete example for the blog post Server Side Rendering for React + Apollo GraphQL Client.

On the Ruby side we have a Rails 5.2 app, with Webpacker installed, and customized to support Hypernova. On the JS side, we have a couple React components, one using Apollo GraphQL Client.

Setup

# install dependencies
bundle install
yarn install
# boot rails
./bin/rails server
# (optional) boot hypernova for SSR
yarn run hypernova

Points of Interest

There's plenty of Rails + Webpacker boilerplate here, so here's some key places to look for implementation details:

About

Example of React + Apollo + Hypernova + Rails + Webpacker


Languages

Language:Ruby 59.9%Language:JavaScript 24.5%Language:HTML 13.9%Language:CSS 1.7%