API Server Django
Open-source API Server crafted in Django using DRF (Django REST Framework)
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.
Dec 8, 2022
- 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 Interface - 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
Requirements​
Python3
(Python2 is not supported)Django
==3.2.13djangorestframework
==3.13.1PyJWT
==2.4.0django-cors-headers
==3.13.0gunicorn
==20.1.0 (used by the Docker set up)
How to use the code​
👉 Step 1 - Clone the sources
$ git clone https://github.com/app-generator/api-server-django.git
$ cd api-server-django
👉 Step 2 - Create a virtual environment
$ virtualenv -p python3 venv
$ source venv/bin/activate
👉 Step 3 - Install dependencies using
pip
$ pip install -r requirements.txt
👉 Step 4 - Start the API Server
$ python manage.py migrate
$ python manage.py runserver
The API server will start using the default port 8000
.
Docker execution​
👉 Step 1 - Get the code
$ git clone https://github.com/app-generator/api-server-django.git
$ cd api-server-django
👉 Step 2 - Start the app in Docker
$ docker-compose up -d --build
Visit http://localhost:5000
in your browser. The API server will be running
Compatible Fullstack Products​
React Soft Dashboard​
React Soft Dashboard
is built with over 70 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining.
The product comes with a simple JWT authentication flow: login/register/logout.
The React Design is crafted by Creative-Tim on top of MUI
Library.
React Purity Dashboard​
Start your Development with an Innovative Admin Template for Chakra UI and React.
- ✅ Innovative Chakra Design -
Designed
by Creative-Tim - ✅ React, Redux, Redux-persist
- ✅ Authentication: JWT Login/Register/Logout
Django React Berry​
Full-Stack
Seed project generated by React App Generator top of Berry Dashboard design.
- 👉 Django React Berry - product page
- 👉 Django React Berry - LIVE Demo
✅ Resources​
- 👉 Access AppSeed and start your next project
- 👉 Deploy Projects on Aws, Azure and Digital Ocean via DeployPRO
- 👉 Create an amazing landing page with Simpllo, an open-source site builder
- 👉 Django App Generator - A 2nd generation App Builder