Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.07 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.07 KB

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.