Advantages x Disadvantages SPA VueJs

2

I have an application (closed system) in PHP structured in the company I work with and we will rewrite this application to improve performance, usability and evolve this application.

I'm studying VueJs and I've really enjoyed the approach to using it in FrontEnd, I'd like to know two things:

1) Assuming that you do a SPA, the client enters the application and spends all day on it, browsing, creating data, generating reports, etc ... I put a lot of stuff in the store (Vuex), this leaves the application / browser / slow navigation? In a long time of use can I have performance drops?

2) I'm looking for the right way to organize files, components, ajax calls and all this front structure but I have not found anything very enlightening so far, would anyone have a good material to indicate? Preferably showing the path of stones for a good SPA application.

Thank you

    
asked by anonymous 11.01.2018 / 14:46

1 answer

1

As far as store vuex is concerned, it will not affect as much, it's all a matter of memory and how you use it, of course in multiple mutations at the same time there are reasons to worry, you can get reference in this question Multiple mutations inside a loop ...

In the organization is also another point that vue leaves your choice, any initiation cli (browserify/webpack) will give you this freedom, you want to apply mvc , ddd , ok, the important thing is cohesion. If you need a guided structure for each component and calls strongly recommend ember.js

    
12.01.2018 / 13:17