I am launching a new application using Rails 5.1 and Vue.js with the integrated Webpacker package Vue.js (generated via the --webpack = vue flag).
I'm trying to understand the pros and cons of using a regular Rails MVC application and a Rails API application (creating a Rails application with the -api flag).
$ rails new someapp --webpack=vue vs. $ rails new someapp --api --webpack=vue
Given the fact that the Rails API has been integrated with the kernel since 2015, and the embedded Webpack through Webpacker pearls is completely new (Rails 5.1, 2017), what would be the best way to create a Rails application, Vuejs will be the frontend? Or, basically, Vui?
Stick to regular Rails with Webpacker Vue or Rails API with Webpacker Vue? And what are the trade-offs?
Some of these answers will simply come to talk about applications with a full MVC stack and SPA applications with APIs. However, are there any specific workflows of the Rails Way + Vue.js components that I should consider other than "this is a question about the fullstack MVC application and the SPA application."
I want to note that I understand that the answers will be somewhat stylistic preferences. Some may prefer one after another.
Both will work, but I would like to think about ease of use, compatibility, and the trade-offs of doing it unilaterally.
Thanks.
source share