Is vuejs recommended for the frontend for a big website
I am developing a website similar to http://www.magicbricks.com.
The backend APIs are developed in laravel. For the frontend I am confused whether to use VueJS (all html files to be converted into .vue and use the power of VueJS) or use Laravel's Blade templates and use VueJS for the reactivity part.
What is the recommended approach?
PS: I am fairly new to VueJS and this would be my first application in VueJS.
do you have a good reason to make a "single page"
> so VueJS is only good for SPAs?
all your Laravel views would then just be JSON output
Ideal is a good balance. Have Vue.js only where you think it makes sense. Creating an entire SPA with any framework is a lot of work and hence it depends on the requirement and how much is the timeline. I still feel Laravel with a mix and match of vue.js is a good idea. Also, always keep your options open. There can be situations where you can even have a situation that jQuery will be required, hence I think the Laravel workflow is great.
A lot of things like CSRF token are already bootstrapped into L5.4 and with Dusk you can write browser test cases so all in all a good choice. You can also look at github/amitavroy and the inferno project for some reference. I have Profile image upload as a vue.js component because there was a reason. But profile edit form is simple php forms. That's what I call the mix and match.
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)