Splitting a rails app into backend and frontend(Vue/React) or using Hotwire?
We have a production app that needs a redesign and I'm debating if I should split it or not. I haven't posted this on r/rails because of it will be obviously lopsided in favor of Hotwire.
The biggest reason for splitting is that UX becomes more complex and I want a smooth user experience. The redesign we did requires complex interactions on many parts of the app. We already have Vue and jQuery code all over the place and it's a mess. Besides that it's easier to test an API and the backend will be leaner (less gems, etc) and hopefully faster.
Another reason is about developers, it's super hard to find great full stack Rails developers, I struggle to find a decent Rails engineer for a while... most of them ask Silicon Valley salaries.
The cons are more to do with having to manage 2 persons instead of 1 for the same thing. A lot of people in Rails communities favour Hotwire and make good points of managing multiple persons on the same project. The split on Rails side is not hard, can be done in 2-3 weeks as there are only about 30-40 slim controllers to edit.
Have you encountered a split like this? Was it a good idea looking back at it?
Thanks
Posted Dec 12, 2021, 4:11 PM UTC