--
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 pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/4cd429ed-ec75-403b-9f4b-cdb903eb8b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1. What I need is react bootstrap, to easily build the nice views.
2. react tables (filter, sort, export to csv)
3. Then throw in authentication and registration both on the web and app.
Any suggestions or cookiecutter template that has some samples already setup?
--
Thank you
Lucas
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 pylons-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/4cd429ed-ec75-403b-9f4b-cdb903eb8b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Aug 25, 2017, at 3:33 AM, Christoph Zwerschke <ci...@online.de> wrote: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.
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.Obviously I’m biased, but…PyCharm Professional (which embeds WebStorm) does a really good job on this front. I do hybrid projects frequently.
{% if request.webpack %}
<script src="http://localhost:3000/static/js/bundle.js"></script>
{% else %}
<script src="{{ find_hash('wp/static/js/main.js') }}"></script>
{% endif %}