- Custom user
- Authentication(JWT) with Registration
- Requirements file
- Django REST framework
- API Documentations(Swagger & Redoc)
- Django CORS headers
Prepare a virtual environment in a folder of choice and install Django:
mkdir newproject && cd $_
python3 -m venv venv
source venv/bin/activate
pip install django
Then install the template:
django-admin startproject --template https://github.com/sirrobot01/django-quickstarter/archive/master.zip newproject .
Install the dependencies:
pip install -r requirements.txt
Before starting off make the migrations for the custom User and Authentications:
python manage.py makemigrations
python manage.py migrate
and you are good to go!!
You might encounter an issue starting the project. You have two options
- Clone this repo:
git clone https://github.com/sirrobot01/django-quickstarter.git
mkdir newproject && cd $_
python3 -m venv venv
source venv/bin/activate
pip install django
Then install the template:
django-admin startproject --template django-quickstarter newproject .
Install the dependencies:
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
- Click on "Use this template"
- Create a new repo off this on your account
- Pull/Clone to your local computer
- Create a virtualenv
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
- Register
POST
/auth/register/
- Login
POST
/auth/login/
- Refresh JWT Token
POST
/auth/refresh/
- Verify JWT Token
POST
/auth/verify/
Note: Check /swagger/ or /redoc/ for other endpoints
- Swagger
GET
/swagger
- Redoc
GET
/redoc/
python manage.py test