P
P
Pavel2015-07-29 21:07:45
JavaScript
Pavel, 2015-07-29 21:07:45

How realistic and convenient is it to transfer a project to AngularJS + Yii from just Yii?

I have a project idea and a desire to practice with AngularJS and NoSQL databases. The project is planned to be written in Yii. For starters, I would like to quickly implement the main functionality, and therefore I think to do everything in Yii first, and then transfer the project to Yii + AngularJS.
Is this a good idea or is it better to implement AngularJS right away?
They write about Yii + AngularJS that it is better to do two projects separately and link the projects through the REST API. If anyone has experienced this, please share your experience.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-07-29
Protko @Fesor

They write about Yii + AngularJS,

This should be done regardless of what is used on the backend. Otherwise, it is a small profit angle.
Depends on the scale of the application. In fact, you then have to rewrite the entire UI layer. If you follow the ideology of onion architecture, then there will be fewer problems. That is, do not work with models in the controller, make a service layer and all that to quickly convert the usual UI into REST. In principle, you may need REST even earlier (for all sorts of ajax-s).
In general, there is a non-zero probability that you will not get to Angular. Although of course it is possible.

E
Evgeny Akhmetov, 2015-08-10
@asperin2

In any case, you need to write with REST initially. In the 2nd Yii, even more so, it is "out of the box" www.yiiframework.com/doc-2.0/guide-rest-quick-star...
And it's better to write the front in Angular right away so as not to do double work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question