Live data from Hacker News

Django React Redux JWT Base Project

github.com

21–28 of 28 posts

Re: Django React Redux JWT Base Project

#21
post #2

This sounds horrifying, less is more.

Make things as simple as possible, but no simpler

For real world projects you end up needing a fair bit of stuff. I'm using a pretty similar stack and once you are up and running the majority of it falls into the background and your day to day work generally involves working only with an easy to use top layer.

Re: Django React Redux JWT Base Project

#22
post #2

This sounds horrifying, less is more.

Excellent. I look forward to seeing your assembly language web framework.

Joking aside - I'm actually going to call you out on a throwaway, crown-pleasing comment. You'd please the crowd a lot less if you added more detail as everyone would suddenly discover their sweet spot in the 'roll your own vs re-use' wars didn't coincide with yours.

It's a little like standing on a soap box and shouting "freedom!". Everyone can get behind a content-free message.

Re: Django React Redux JWT Base Project

#23

Not sure why the `accounts` app is included [0]. As seen from the comments [1] in the `models.py` it looks like it's from an existing project, don't think this should be in a boilerplate project. Nevertheless, nice boilerplate project :). [0] https://github.com/Seedstars/django-react-redux-jwt-base/tre... [1] https://github.com/Seedstars/django-react-redux-jwt-base/blo...

You're right. I copy pasted some code from some projects to build this generic one. A colleague will fix it in a few minutes :)

Including the 'accounts' app is actually pretty useful. Then even a newcomer to react and redux can see how the front and back end are hooked up.

I'd encourage anyone to look at these files:

Auth action (which depends on the accounts app and DRF): https://github.com/Seedstars/django-react-redux-jwt-base/blo...

Auth Reducer (which changes redux state based on the outcome of login/logout actions): https://github.com/Seedstars/django-react-redux-jwt-base/blo...

Re: Django React Redux JWT Base Project

#24
What would be the best way to include some form of web sockets server/realtime pub-sub into this á la Socket.io? What's the best way to do this in Django? I feel this is an important component of any new modern web project, but it seems to be ignored here.

Re: Django React Redux JWT Base Project

#25

Does this render all the React content server-side first? I wasn't able to figure out from an initial glance through the files.

No. I was looking for that too.

Some prior work on that front is: https://github.com/markfinger/python-webpack --- requires a node.js server to run in tandem. Tried it a couple of months ago, and worked, but not sure how it will handle lots of load...

Re: Django React Redux JWT Base Project

#26

What would be the best way to include some form of web sockets server/realtime pub-sub into this á la Socket.io? What's the best way to do this in Django? I feel this is an important component of any new modern web project, but it seems to be ignored here.

Take a look at https://github.com/andrewgodwin/channels

Re: Django React Redux JWT Base Project

#27

Does this render all the React content server-side first? I wasn't able to figure out from an initial glance through the files.

No. I was looking for that too. Some prior work on that front is: https://github.com/markfinger/python-webpack --- requires a node.js server to run in tandem. Tried it a couple of months ago, and worked, but not sure how it will handle lots of load...

This was exactly our analysis. Since most of our apps don't need to be isomorphic/universal we didn't pursue this avenue.

Re: Django React Redux JWT Base Project

#28

Earlier quoted context omitted.

You're right. I copy pasted some code from some projects to build this generic one. A colleague will fix it in a few minutes :)

Including the 'accounts' app is actually pretty useful. Then even a newcomer to react and redux can see how the front and back end are hooked up. I'd encourage anyone to look at these files: Auth action (which depends on the accounts app and DRF): https://github.com/Seedstars/django-react-redux-jwt-base/blo... Auth Reducer (which changes redux state based on the outcome of login/logout actions): https://github.com/Se…

[deleted]
Post reply on HN