API Server Django
Open-source API Server crafted in Django using DRF (Django REST Framework)
Last updated
Open-source API Server crafted in Django using DRF (Django REST Framework)
Last updated
Simple starter built with Python / Django Rest / Sqlite3 and JWT Auth. The authentication flow is based on json web tokens. The product comes with a simple, intuitive codebase, DRF integration, SQLite for persistence JWT Authentication API, Docker, and unitary tests.
Version: v1.0.2, release date
2022-06-07
API Definition - the unified API structure implemented by this server
Django API Server - source code
Full-stack samples compatible with this product:
React Berry Dashboard - open-source sample
React Datta Dashboard - open-source sample
API Methods - for full description please access API Unified Definition
USERS API:
/api/users/register
: create a new user
/api/users/login
: authenticate an existing user
/api/users/logout
: delete the associated JWT token
/api/users/checkSession
: check an existing JWT Token for validity
/api/users/edit
- edit the information associated with a registered user
Python3 (Python2 is not supported)
Django==3.2.13
djangorestframework==3.13.1
PyJWT==2.4.0
django-cors-headers==3.13.0
gunicorn==20.1.0 (used by the Docker set up)
👉 Step 1 - Clone the sources
👉 Step 2 - Create a virtual environment
👉 Step 3 - Install dependencies using
pip
👉 Step 4 - Start the API Server
The API server will start using the default port 8000
.
👉 Step 1 - Get the code
👉 Step 2 - Start the app in Docker
Visit http://localhost:5000
in your browser. The API server will be running
The product can be used as a standalone server but also as an authentication server for React, Vue products. Such a product already configured with Django API Server is React Datta Able, an open-source React Dashboard.
React Datta Able - product page
React Datta Able - source code