February 2019
Intermediate to advanced
240 pages
5h 25m
English
There are a number of different options when it comes to combining JavaScript into the front end for your Rails apps. Perhaps the biggest choice is whether your Rails app will serve up the front end or not. Both are equally valid options, and each way has some advantages and disadvantages and will lead to different setups.
If your Rails app is not serving up your front end, that means you’re using your Rails app as an API layer. In this case, you’d have a separate front end, typically written purely in JavaScript, whether that’s React, Ember, Vue.js, or something else. This scenario is outside the scope of the book, since it involves getting very JavaScript-specific with your setup. However, in general terms, ...