All Projects → SimpleJWT → drf-SimpleJWT-React

SimpleJWT / drf-SimpleJWT-React

Licence: MIT license
Template Django + DRF + SimpleJWT + React project

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to drf-SimpleJWT-React

school-navigator
Navigate the Durham, NC public school system
Stars: ✭ 25 (-68.75%)
Mutual labels:  django-rest-framework
django-final
source code for django-final course
Stars: ✭ 28 (-65%)
Mutual labels:  django-rest-framework
django-logic
Django Logic - easy way to implement state-based business logic with pure functions
Stars: ✭ 44 (-45%)
Mutual labels:  django-rest-framework
repanier
Django extension : web tool for short circuit food supply
Stars: ✭ 18 (-77.5%)
Mutual labels:  django-rest-framework
open
The most boring open source you've ever seen ....
Stars: ✭ 109 (+36.25%)
Mutual labels:  django-rest-framework
django-parler-rest
Translatable model support for django-rest-framework
Stars: ✭ 48 (-40%)
Mutual labels:  django-rest-framework
django-rest-framework-datatables-editor
Seamless integration between Django REST framework, Datatables and Datatables Editor.
Stars: ✭ 25 (-68.75%)
Mutual labels:  django-rest-framework
django-ninja-extra
Django Ninja Extra - Class-Based Utility and more for Django Ninja(Fast Django REST framework)
Stars: ✭ 53 (-33.75%)
Mutual labels:  django-rest-framework
django-firebase-auth
Django DRF authentication provider for Google's Firebase Authentication Service
Stars: ✭ 50 (-37.5%)
Mutual labels:  django-rest-framework
agent
Job tracker & performance platform
Stars: ✭ 26 (-67.5%)
Mutual labels:  django-rest-framework
drf tweaks
Extensions for Django Rest Framework
Stars: ✭ 77 (-3.75%)
Mutual labels:  django-rest-framework
drf-turbo
An alternative serializer implementation for REST framework written in cython built for speed.
Stars: ✭ 73 (-8.75%)
Mutual labels:  django-rest-framework
oms cms
A Django content management system focused on flexibility and user experience
Stars: ✭ 18 (-77.5%)
Mutual labels:  django-rest-framework
django-rest-framework-example
REST framework example for Django < 1.9 // New version ->
Stars: ✭ 29 (-63.75%)
Mutual labels:  django-rest-framework
Shappar
気軽に投票を【取れる】【見れる】【できる】アプリです。
Stars: ✭ 22 (-72.5%)
Mutual labels:  django-rest-framework
python-web-dev-21-2
Material for "Web Development in Python with Django" using Django 2.1, published as a Pearson LiveLesson on Safari Books Online
Stars: ✭ 38 (-52.5%)
Mutual labels:  django-rest-framework
rest-framework-latex
A LaTeX renderer for Django REST Framework
Stars: ✭ 30 (-62.5%)
Mutual labels:  django-rest-framework
PyQuotes
PyQuotes is a Django-based web application and REST API. That will allow you to launch an online quotes service.
Stars: ✭ 23 (-71.25%)
Mutual labels:  django-rest-framework
mobileAudit
Django application that performs SAST and Malware Analysis for Android APKs
Stars: ✭ 140 (+75%)
Mutual labels:  django-rest-framework
tscharts
Django REST framework-based Digital Patient Registration and EMR backend
Stars: ✭ 14 (-82.5%)
Mutual labels:  django-rest-framework

React DRF SimpleJWT App

TL;DR: Django, DRF, DRF SimpleJWT with React Frontend sample.

The purpose of this is to get you started with a secure React-Django project. No need to implement authentication+authorization on your frontend when it's already done for you. You can start by pressing "Use this template"; it's not a fork but a new repository with a fresh initial commit with all the code from here.

Test user: test and pw test.


Example repositories


Introduction

This repository is an example of using React on the front end comminicating with Django, Django Rest Framework and DRF SimpleJWT applications.


Usage

Backend (Django) Instructions.

  1. cd server to get your terminal/cmd into the server directory.
  2. To run the server, create a virtual environment virtualenv venv && source venv/bin/activate, install packages pip install -r requirements.txt -- the requirements.txt file is inside the server subdirectory -- and do python manage.py migrate && python manage.py runserver.
    • Again, make sure when you do this, you are inside the server directory on your terminal/cmd.
    • On Windows, you should do venv\Scripts\activate instead of source venv/bin/activate
  3. If you're writing for an example repository, please create a new directory labeled with the name of the framework (e.g. jwt-ios), and add its .gitignore. Please use the github/gitignore repository. Provide detailed instructions if necessary.

A default user with the username test and password test have been created.

This repository does not come with throttling, but it is highly recommended that you add throttling to your entire project. You can use a third-party package called Django-ratelimit or DRF's internal throttling mechanism. Django-ratelimit is more extensive -- covering Django views, as well -- and thus more supported by SimpleJWT.

Frontend (jwt-react) React instructions.

  1. cd jwt-react to get your terminal/server into the frontend (react) folder.

  2. npm install to install all of the dependencies for the front end application.

  3. npm start and you should be good to go, ensure that your backend is running on port http://localhost:8000, if you run it on another port/ip please change the BASE_URL in jwt-react/src/api/auth.js

  4. Use npm test if you'd like to run the test which tests the api/ folder currently.


License

This repository is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].