Skip to content

hauntedhost/rails-webpack

Repository files navigation

Rails with Webpack

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).

React Hot Reloading Demo

All frontend related code and Webpack configuration lives in ./frontend (e.g., React components live in ./frontend/app/components).

Usage

bundle install && npm install
rake db:setup
foreman start -f Procfile.dev
open http://localhost:3000

ᕕ( ᐛ )ᕗ


Brewed by Sean Omlor. MIT License.

About

Minimalist integration of Rails and Webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published