E
E
eldar_web2017-09-10 10:09:41
Ruby on Rails
eldar_web, 2017-09-10 10:09:41

What is the best use case for building applications when using a backend framework and a js framework together?

Here's an interesting question.
Let's say we take Rails from the backend, and js - Vue.
As I know, there are two options for using them when creating an application:
1) Use Rails as the main (all its things), and use Vue inside it as a helper
2) Use Vue as the main, and solve server issues purely from the API created by Rails -ami.
The question is:
Are such options possible, and if so, which one is better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2017-09-16
@eldar_web

It depends on the type of application you're building, your level of proficiency in Ruby and JavaScript, and your desire to use one language more than the other.
Vue can be used not only for client-side rendering, but also for server-side rendering (SSR) https://ssr.vuejs.org/ru/
The 1st option is more suitable for traditional applications where you can gradually introduce new functionality while the help of Vue (if at all justified). And also if the application was developed before using Vue.
The 2nd option is more suitable for SPA applications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question