Answer the question
In order to leave comments, you need to log in
What to use on the backend for SPA applications?
My project is powered by Yii2 and MySql on the backend and JS with jQuery on the front. Now I understand the need for SPA architecture, Angular or React has not yet decided. One thing is clear, that the thick client exchanges JSON data using the REST API. It's not clear to me what to use on the server to process the application's API requests. Mobile applications are planned in the future, so I want to have one work logic on the server.
Now, if I use Yii2 or another php framework, then what's the point in it if most of its functionality is not needed, controllers, actions, routing, helpers, etc., in fact, I only need models from it and that's it.
There is an option to use Node.js, but it still needs time to learn, rewrite the logic with its asynchrony. The question also arises of the rationality of using the mySql base or switching to mongoDB, how to organize the architecture, are there frameworks or is it enough to use express.
What is better to use on the backend at the moment and what is used more often in practice?
Answer the question
In order to leave comments, you need to log in
Yii2 or another php framework, then what is the point of it if most of its functionality is not needed, controllers, actions, routing,
if you don’t need server rendering, then there is no particular advantage in node.js;
if everything works for you on mysql, then there’s no point in switching to mongodb either, you need to use nosq wisely and when you need it, if you don’t need it, you don’t need to use it
and what's the problem then?
if you know Yii2 well, use it, if you don't know Yii2, but you know php, take microframework slim or similar
It's not clear to me what to use on the server to process the application's API requests
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question