DjangoReact

screenshot of DjangoReact

Boilerplate example of how to mount and connect a REST API + frontend using Django and DjangoRestFramework for the backend as one app, and React with hooks as a second separate app.

Overview

The DjangoReactAdmin project is an implementation of an admin panel with a backend in Django using Django Rest Framework (DRF), and a frontend with React using hooks and Redux. The project consists of two main applications: the backend with Django and DRF, and the frontend client built with React and Redux. The backend is a simple Django project with endpoints that expose models with their serializers and views. The frontend application utilizes modern React and ES6 specifications, and utilizes React Hooks for Redux functionality. It also uses React-Router-Dom with custom PrivateRoutes for secure and private app functionality.

Features

  • Backend in Django using DRF
  • Frontend client built with React and Redux
  • Authentication using Django's built-in User model and Rest-Auth package with token authentication
  • Utilizes the "Is authenticated" permission class for every class
  • Modern React app with ES6 specifications
  • Utilizes React Hooks for Redux functionality
  • Uses React-Router-Dom with custom PrivateRoutes for secure and private app functionality

Summary

The DjangoReactAdmin project combines Django and DRF for the backend, and React with hooks and Redux for the frontend. It provides an admin panel with authentication and authorization features, and utilizes modern technologies and specifications. The installation process involves setting up the necessary dependencies and servers, and the project can be easily customized and extended to suit specific needs.