17 Feb 2017
GitHub repo: giannisp/rails-react-boilerplate
This is a pure Ruby on Rails / React / Redux / Webpack 2 boilerplate app that I have built and open-sourced. Highlights include using the newly released Webpack 2, as well as making the frontend part independent of the Asset Pipeline.
Webpack is a module bundler. It can bundle all JS files for usage in the browser, but can also transform / bundle / package any resource or frontend asset.
Webpack can support every modern JS app, using ES6 or CommonJS modules, or both, create a single or multiple bundles, and in general can be customized to accomplish any application requirement.
The frontend assets on this app are placed on a more accessible directory, at
front/css, rather than
At any point, migration to a different backend (for example NodeJS) can be seamless since Webpack is running as a stand-alone bundler. There's absolutely no dependence to the Asset Pipeline or any other framework-specific module.