LogoA Template
icon of Django-React-Redux-Boilerplate

Django-React-Redux-Boilerplate

DRF React Redux Boilerplate: Authentication and registration setup with React.js, Material UI, Django REST framework, and JWT.

Introduction

DRF React & Redux Boilerplate

Frontend ⭐
  • Minimal Template with necessary components✔
  • Configured Redux Store✔
  • Auto formatted with Prettier ✔
  • React with functional components and hooks ✔
  • Forms Validation with Formik ✔
  • Login , example to understand the JWT auth ✔
  • Server Errors Handling✔
Backend🛠
  • Django REST framework for a powerful API ✔
  • Django ORM for interacting with the database✔
  • Authentication With JWT (Register, Sign In) ✔
  • Throttle setup ✔
  • Testing with Pytest ✔
  • Extra password hashers like Argon2PasswordHasher Recommend by official django docs. ✔
How to Run locally 🚀
Backend
  • Install requirements after creating and activating virtual environment
    $ pip install -r requirements/local.txt
  • Currently SQLite is configured, you can change it with any other as well. Then run
    $ python manage.py makemigrations
    $ python3 manage.py migrate
    To run tests:
    $ pytest
    API Documentation will be available at http://localhost:8000/api/v1/schema/redoc/ Admin available athttp://localhost:8000/admin/
Frontend
- Install dependencies in frontend app using following commands in separate terminal
- First make sure you have installed Node.js, v18.12.1. while upgrading this setup.
 
For More info https://nodejs.org/en/
 
- Then run following commands in frontend dir
 
$ yarn install
$ yarn start
 
-  React app available at`http://localhost:3000/`
A template
Copy badages awards

Newsletter For Templates

Join the Community For Templates

Subscribe to Templates newsletter for the latest news and updates