This is the project for JWT authentication in React frontend & Django backend.
-
Clone the repo:
git clone https://github.com/danielovieda/React-Django-JWT-Auth.git -
Install npm & pip packages:
cd frontend
npm install
pip install djangorestframework djangorestframework_simplejwt django-cors-headers
-
Frontend:
cd frontend
npm run start (for development, hot reloading)
npm run build (for production) -
Backend:
cd backend
python manage.py runserver