I am currently building my web app using Phalcon framework.
On the improvement side, I am exploring how we can seperate the front-end code from the back-end (phalcon). It seems like modern web apps nowadays seperated their frontend from the backend. I would like to to see your advice on how you will recommend to do so.
- I am not using the micro apps. I am using the full MVC framework with views, controlllers app.
Front end framework
- I am looking to using Vue.js https://vuejs.org/
In order to seperate the front end from the backend, the only solution that I think of is to rewrite the whole backend using micro app. Make backend accessible through a restful api. That requires some effort which i do not know if it is wise to do so.
I do not know if this is the best way to do it as if i do so - i will not be using the views, routing mechanism as provided by Phalcon. Doesn't that defeats the purpose why I am using Phalcon?
I would like to seek for some advice from you guys who has successfully did this on a production site and how did you go about doing so. Best practices, recommendations etc.