Example for very minimal integration of Rails with Webpack, React, Redux and hot reloading via react-transform-hmr.
Involves only a few changes on Rails end (~30 lines of code) and no magic gems. Compatible with Heroku via multiple buildpacks (heroku/nodejs and heroku/ruby, in that order).
All frontend related code and Webpack configuration lives in ./frontend
(e.g., React components live in ./frontend/app/components
).
bundle install && npm install
rake db:setup
foreman start -f Procfile.dev
open http://localhost:3000
ᕕ( ᐛ )ᕗ
Brewed by Sean Omlor. MIT License.