R
R
Ruslan2016-11-25 11:16:27
JavaScript
Ruslan, 2016-11-25 11:16:27

How to write the front-end part of the project (backbone, Angularjs, etc.)?

I rarely work with C js and I try to do everything in php (render), but now it’s not comme il faut to reload the page with every click, I want to make a new order (for several months of work) dynamic. The site will be something like a social network, with competitions and achievement games, chats, blogs and more.
Tell me which framework or library is better to choose now, maybe links to articles or just pros and cons?
Criteria:
Not very complex, documentation.
The project will be in php, Yii2.
I can make a REST API, a websocket on nodejs - to interact with the front-end part of the article,
there are a lot of articles for all sorts of things, but since I don’t understand, I don’t want to make a mistake with the choice.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim, 2016-11-25
@maxfarseer

I am for: Angular / React, which is more to my liking.
I prefer React.
Backbone still comes across in vacancies, but I see no reason to write a new project on it in order to study it. Vue comes across in vacancies less often than angular/react.

R
RubaXa, 2016-11-25
@RubaXa

Does Yii2 itself have no official recommendation? For example, Laravel made friends with Vue.js, look in its direction, it is simpler than what you listed.

O
Oleg Gamega, 2016-11-25
@gadfi

I’m generally an android developer, I chose react for my project, from the pluses good backward compatibility (a stone in the angulr side) lack of magic and good documentation, with general simplicity
as an additional + in your case, if you need a client, you can look towards react native
ps before did nothing more complicated than an ajax request to js

V
Victor, 2016-11-26
@Levhav

The simplest option is to use one of the SaaS comet servers https://habrahabr.ru/company/comet-server/blog/273573/ then you won’t have to load your server with requests and it will work quickly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question