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
https://djreactjwt-1-n3165612.deta.app
- django
- djangorestframework
- djangorestframework-simplejwt
- react
- react-router-dom
- redux-toolkit (RTK)
- TailwindCSS
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.