Example of React + Apollo + Hypernova + Rails + Webpacker
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
lib
log
public
script
test
tmp
vendor
.babelrc
.gitignore
.postcssrc.yml
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

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: