DEV Community

Cover image for Build a complete warehouse management system with React and Django.

Build a complete warehouse management system with React and Django.

Desmond on June 09, 2020

Update My React Frontend now authenticates successfully with my django backend through Token Authentication. Might change it to JWT's later on. My...
Collapse
 
louy2 profile image
Yufan Lou •

Please do not store secrets in the local storage. They'd be accessible by any third party script loaded to your website, and one cross-site scripting attack away from leaking.

For more, please read Please Stop Using Local Storage

Some other considerations regarding session ID security: On Securing Web Session Ids

Collapse
 
nyamador profile image
Desmond •

Thank you. I wasn't really sure on it🙏.
I'll checkout the resources.

Collapse
 
gandalfarcade profile image
Chris Mumford •

Definitely avoid storing your token in LocalStorage. Using a HttpOnly cookie might better serve you.

owasp.org/www-community/HttpOnly

I don't know the full context of your token needs but I would usually recommend using a JWT for granting access to an API. For most use cases they are a simple but effective solution.

blog.logrocket.com/jwt-authenticat...

Thread Thread
 
nyamador profile image
Desmond •

Thanks Chris⚡

Collapse
 
paulbijacho profile image
Paul Bijan Coch •

Hey Desmond, amazing product, and of course a very interesting topic.
Would you like to integrate your project into our platform and make it reusable, and scalable for you and your future developments - and maybe even for others? You may earn some easy money from it. Hit me up on paul.coch@generato.com or linkedin.com/in/paul-coch

Collapse
 
zachary profile image
zachary •

interest project, if you want collaboration on this, hit me up.

Collapse
 
nyamador profile image
Desmond • • Edited

Hey there I'll provide a link to the github repo in my next post. I need to prepare it for collaboration.
May I know what technologies you work with?

Collapse
 
zachary profile image
zachary •

As my Github account mentioned, I am familiar with Python + Django + React | RN or Vue, and PHP + Laravel, Java Spring boot.
Thanks

Thread Thread
 
nyamador profile image
Desmond •

Awesome⚡

Thread Thread
 
nyamador profile image
Desmond •

Hi Zachary here's the link to the repo

github.com/Nyamador/wms

Collapse
 
botmrtomtastic profile image
Mr. Tomtastic Hoffmann •

Hello, do you have a video available of this project?

Collapse
 
nyamador profile image
Desmond •

Not yet. I mean of it's possible I might put up a video soon

Collapse
 
botmrtomtastic profile image
Mr. Tomtastic Hoffmann •

That would be awesome.

Thread Thread
 
nyamador profile image
Desmond •

In the mean time you could subscribe and turn on notifications.
youtube.com/channel/UCHclsWHoxEZU0...

Thread Thread
 
botmrtomtastic profile image
Mr. Tomtastic Hoffmann •

Done! Can't wait for the video!!

Collapse
 
sofiiasov profile image
SofiiaSov •

Interesting project! I'm looking for an article about the essence of the warehouse inventory management systems, features to include, values for businesses, and implementation steps. Something like this post about warehouse inventory software. Any advice?

Collapse
 
jayso_o1 profile image
Sowah Joseph Anyetei •

Hello, Desmond can you explain the two round trip u mentioned...How is that happening?

Collapse
 
nyamador profile image
Desmond •

I mentioned two round trips in the case where the JWT would have to be fetched from the server upon every request and if the refresh token is also expired then that's an extra delay to get a fresh one.

Collapse
 
yogigachinmath profile image
Yogi •

Use cookies with http only.

Collapse
 
nyamador profile image
Desmond •

I resorted to using JWT