Skip to content

Django Rest Framework with authentication Boiler plate. Interfaced with React and Typescript, using reduex-toolkit with redux-saga for state handling. This is aimed at imporving project architecture and promoting decoupled buidling desigin approach for your next Django-React project.

Notifications You must be signed in to change notification settings

codeOlam/boiler-plate-django-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Logo

About

Django is a web-framework written in Python and runs the backend for many of the internet's most popular websites. This is a multi-user type auth app, it is built ontop of Django 3.2.8 and Django Rest Framework 3.12.4

This app features the following:

-- BaseUserManager and AbstractUser for custom user authentication

-- Authentication Backend configured to authenticate users, using email and password

-- Allow you to CreateUser Type e.g: Teacher or Student at signup

Technology and Requirements

  1. Django==3.2.8
  2. Python3
  3. djangorestframework==3.12.4
  4. drf-yasg==1.20.0

Installations

  1. installing Python3
  2. installing Django 3.x
  3. installing Django Rest Framework
  4. installing Virtualenv
  5. installing requirements from requirements.txt. After activating vitualenv run:

(venv)path/to/app/src$ pip install -r requirements.txt

  1. psycopg2
  2. set up an env file with:

SECRET_KEY={your secret key value}

Run App

  1. After cloning this repo, make sure your virtualenv is ativated and change your path to $app root/.

(venv)path/to/app$

  1. install packages required by running

    (venv)path/to/app$ pip install -r requirements.txt

  2. change director to src/ make sure you are in the same directory where manage.py is then run

(venv)path/to/app/src$ python manage.py makemigrations

  1. The migrate the app (venv)path/to/app/src$ python manage.py migrate

  2. To run the development server (venv)path/to/app/src$ python manage.py runserver

  3. To open swagger docs go to your web browser and enter 127.0.0.1:8000/docs/ or 127.0.0.1:8000/redoc/

Recommendations

This App is not designed to be used full in deployement. You are free to make any adjustments to it and include in you project

Resources

  1. Django 3.x Doc
  2. DRF 3.X
  3. My Previous Repo

Other Resources

  1. Customizing authentication in Django

About

Django Rest Framework with authentication Boiler plate. Interfaced with React and Typescript, using reduex-toolkit with redux-saga for state handling. This is aimed at imporving project architecture and promoting decoupled buidling desigin approach for your next Django-React project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published