Skip to content

ZaurZahid/react-django-jwt-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

A React + Redux / Django Rest Framework authentication example

Functionality:

  • Login with JWT
  • middleware for JWT refresh if expiring
  • Registration
  • Dynamic navbar switching when user logs in / logs out
  • Password Change
  • Screen size responsive components & Navbar

How to use:

  • Clone the repo

Frontend

  1. cd frontend && npm install
  2. enter your backend url in actions/backendUrl.js or add an environment variable named REACT_APP_DEV_URL
  3. npm start

Backend

  1. cd backend, create a virtualenv, activate it and install -r requirements/local.txt
  2. python manage.py makemigrations custom_user , python manage.py migrate , createsuperuser
  3. python manage.py runserver

About

React + Django Rest Framework authentication example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published