I have been working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8. It is intended to be versatile and easy to use.
The Dashboard of the application is "pure" Codeigniter, with Models, Controllers, and views, while the fronted is made up of JSONs managed and displayed by AngularJS.
I operated this clear separation between back-end and front-end in order to enable "theming". See a demo HERE.
There are several problems with using AngularJS:
- no server-side rendering (causing SEO issues);
- anyone accessing the website has to go through index.html (accessing any other URL directly gives a 404 error);
- The contents of he
<title>
tag does not change with the view;
Replacing AngularJS with a template engine (EJS) crossed my mind but I feared I would have to run 2 servers: an Apache one and a Node.js one.
What is a viable alternative to AngularJS that would allow me to keep the application's backend and API?