Skip to content

jason-liu22/django-react-jwt-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Django JWT Authentication Template

Why did I develop this project?

I am asked how to structure a react app and how to architect authentication, public, protected routes in react app from beginner. So I decided to build and publish a sample to help beginners understand them

Demo

https://djreactjwt-1-n3165612.deta.app

Backend

  • django
  • djangorestframework
  • djangorestframework-simplejwt

Frontend

  • react
  • react-router-dom
  • redux-toolkit (RTK)
  • TailwindCSS

Deployment

I deployed this project on Deta Space, a free hosting website for both backend and frontend. The deta space uses a configuration file named Spacefile in yaml format. The SpacefileExample here is an example and actual file for this project deployment. I think you can use this configuration file for django-react project deployment.

Personally, I love Deta Space, It's a Heroku alternative. Deta is more developer friendly. I recommend you trying to use it.