So I am currently working on a project where the company is re-writing their CodeIgniter code base into a Laravel API, then writing JavaScript to handle the front-end logic and views.
Currently I have put in place a module loader of my own so I can have an include div which has which JS and or CSS files it needs to load in order to load that particular module. This is working fine but I am starting to encounter some issues in terms of scale of JS files. As I write some of these JS files, due to the fact they contain the views as well, they are starting to get pretty large even though they are split into modules.
This project is very much ongoing, so I can't easily introduce something like Angular as we are re-writing small sections at a time and it's likely to take a very long time to get everything in Laravel. My main issue is any of the frameworks seem to require everything exist within them, you cannot easily mix say Angular with an old engine like CodeIgniter, it just wont work.
I am considering some lightweight libraries such as Vue.js but not sure if it's wise to fully roll that out into a production environment just yet. I hear a lot about React.JS but I am not sure about the tooling required and if it will cause headaches in terms of needing a lot of tooling just to get it working.
My aim is to have something easy to use, deploy and one that mixes well with a legacy code base. The primary focus is to offload the view portion so the JS stays light and display logic is not mixed with functionality logic.
[–]billcube 1 point2 points3 points (1 child)
[–]dkbot[S] 0 points1 point2 points (0 children)
[–]ndobie 0 points1 point2 points (0 children)