I
I
Ivan Kondratiev2015-05-28 10:03:13
symfony
Ivan Kondratiev, 2015-05-28 10:03:13

Is there any literature on creating applications in conjunction with symfony2 and angularjs?

I really want to develop in this direction. Learned a little angular and symfony2 . Separately, I can create simple applications on them. But I can’t figure out how to properly create SPA applications using these frameworks. I would be grateful for any sources of information on this issue.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-05-28
@inik23

But here's how to properly build SPA applications with these frameworks

Separately. Symfony server, angular client. These are different parts of the projects, in fact they are two different applications. They have no common parts, from the server side you only have a REST or JSON RPC API. The client does not even know that the server is written in puff. Next, the nginx configuration is usually written in such a way that, say, requests for / api / go to symphony, and everything else is transferred to angular.
That's it.

F
FirstName LastName, 2015-06-04
@scard

In fact, the first post has already opened. As for the details: use something like this composition of symbol bundles
1) https://github.com/nelmio/NelmioApiDocBundle to document your REST API
2) https://github.com/FriendsOfSymfony/FOSRestBundle to implement the api itself
3) https: //github.com/FriendsOfSymfony/FOSUserBundle is a github for authorization and binding with oauth2 approach
The details of binding with oauth2 service and its implementation are well described here m2mdas.github.io/blog/2013/11/21/integrate-hwioaut...
In essence, regular tasks are assigned to the framework: to do something that is required from the client side (in this case, it is AngularJS) and to do it (fetch, update, delete, etc.), relying on the appropriate rights.

I
Ivan Kondratiev, 2015-05-28
@inik23

Thanks for answers. Maybe it's my naivety. I thought there was literature on the subject.
for https://github.com/FlyersWeb/angular-symfony special thanks, I'll read it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question