Live data from Hacker News

Django React/Redux Base Project

github.com

1–10 of 79 posts

Re: Django React/Redux Base Project

#6
post #3

When working with a large (read: quantity of models) REST API, is there a parallel Redux pattern to Ember's ember-data?

I think I understand what you mean... but basically your data with get put in a store and you access it in your component. Its similar to ember-data its just doing less behind the scenes. For example you do an action, fetch, then reduce, then store your data in immutable objects. In ember this is all done for you so its more code.

Re: Django React/Redux Base Project

#7
Django + React is an awesome combination that I recommend taking a look at. This repo is a good starting point but you can probably get rid of half of the dependencies if you aren't working on a team of developers.

I am currently using Django + React on a personal project and took a slightly different route, no pun intended. Rather than using react router, as I never really liked client side routing, I use Django views to hydrate all the necessary props for the page and have a base template that loads the React component with the props. Since each page / component is fairly self-contained I also decided against using any Redux / Flux implementations. Furthermore, it only takes a few hours of work to get server side rendering up and running thanks to react + node.

Re: Django React/Redux Base Project

#8
So, I made a Django site with a VanillaJS single-page app framework (no React/Redux) and that includes Django server-rendered fastboot, in about 10KB Javascript code. I made it/use it for our fashion site - https://www.futureclaw.com

Page load times are about .5 seconds for me, with lots of graphics. Also, I'm pretty sure it's faster than React.

Is this something people want to use that I should package up into its own product? It's a little bit of code but mostly methodology discipline.

Re: Django React/Redux Base Project

#10
I actually work in a Flask + AngularJS stack and have been dying to learn Django + React. Flask has been incredibly easy to setup and create APIs and even though the front-end continues to have its little intricacies, it can't heart to traverse them through new technologies.
Post reply on HN