Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 2.17 KB

README.md

File metadata and controls

28 lines (22 loc) · 2.17 KB

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: