2015-02-14 20:29
浏览 41

Symfony2 + NodeJS + AngularJS?

I want to start the development of an real time and single-page application with authentification, actions, and notifications.

Is it possible to make the back-end treatment with Symfony whom I know well, and to add NodeJS / AngularJS by above?

This plan will help you has to understand me. Is it possible to apply it, and is it a good practice?

enter image description here

图片转代码服务由CSDN问答提供 功能建议

我想开始使用身份验证,操作和通知开发实时和单页面应用程序。< / p>

是否可以使用我熟悉的Symfony进行后端处理,并按上面添加NodeJS / AngularJS?

此计划将 帮助你了解我。 是否可以应用它,这是一个好习惯吗?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

  • doumi5223 2015-02-14 21:02

    First, I believe we need to clarify some misunderstandings regarding the real time and AngularJS. AngularJS $http and $resource use Ajax in the background.

    To have real time communication where the server pushes information to the client (instead of responding to Ajax calls), you would have to use Websockets. There are several alternatives in this domain, for example, integrates very well with nodejs, Ratchet is specific for PHP, or you can use a 3rd party like Pusher through

    Second, you can certainly invoke PHP scripts from nodejs, however, unless you have a very specific reason to do so, it seems to me that it defeats the purpose of using nodejs. If you do not have such a requirement on use nodejs.

    解决 无用
    打赏 举报

相关推荐 更多相似问题