Progressive integration strategies for JavaScript-heavy Rails apps
Progressive integration strategies for JavaScript-heavy Rails apps
NOTE: This is more up-to-date than the last commit date would indicate, as most of the interesting work is not on the
masterbranch.
Componentized views make UI development orders of magnitude simpler. Unfortunately, scaling UI development and integrating a modern JavaScript workflow into a new or existing Rails app can be tricky.
This project builds a simple todo list component with 4 different JavaScript integration strategies:
There are two recommended ways of browsing this project. The first is to read the diffs between branches in order of rising complexity. The current branch (master) is just a newly generated Rails app.
frontend folder managed by Browserify. Components are also organized into more advanced components in .vue files.frontend folder through Webpack.If there's a specific setup you're interested in and you want to see all work done from the point of a newly generated Rails app, just diff with master:
If you notice a mistake, room for improvement, or have questions, issues and pull requests are very welcome. :smile:
No open issues yet, or sync has not completed.