Am 25.08.2017 um 09:00 schrieb Mikko Ohtamaa:
> * Front end and back end codebases can live in separate repositories,
> with some third repository for integration tests if needed

It makes also sense to separate them as IDE projects, as most IDEs do not understand the concept of a hybrid projects very well. Better to have one Pyramid project and one React project.

> * Communicate with the backend using REST, AJAX

Or use GraphQL (with graphene and webob-graphql). If you use REST, you can make good use of Pyramid's traversal mechanism with e.g. SQLAlchemy objects as resources. When you use GraphQL, you do the traversal outside of Pyramid in the resolvers.

Besides React, you should also consider other frontend frameworks (a good overview is here https://www.sitepen.com/blog/2017/06/13/if-we-chose-our-javascript-framework-like-we-chose-our-music/). I particularly like Angular and Vue.js. I found that it is much more enjoyable to write the frontend code with TypeScript, not only because of the typing aspect, but because you can use all the modern JavaScript features which make JavaScript more similar to Python.

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/e82e7b0b-ebdb-29c4-89c8-e7f1a4cc49df%40online.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to