DRFjwt is a framework designed for rapidly launching new Django REST Framework projects with JWT authentication enabled using Djoser. It includes essential features like a custom user model, user management (login/logout/signup), and more for quick project setup.
- Django 5.1, Django REST Framework 3.12, and Python 3.8 support
- Custom user model for extended user profiles
- JWT-based authentication for secure API access
- Automatic addition of access and refresh tokens to cookies for seamless authentication
- User management: signup, login, and logout endpoints
- Djoser user endpoints via
djoser
— check the Djoser documentation for details - API documentation available at http://127.0.0.1:8000`/redoc/` for easy access to API endpoints
- virtualenv for virtual environment management
Ensure virtualenv
is installed on your computer. You can install it with:
pip install virtualenv
-
Clone the repository:
git clone https://github.com/anomalous254/drf-jwt.git cd drf-jwt
-
Set up a virtual environment:
virtualenv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install project dependencies:
pip install -r requirements.txt
-
Run database migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
For more details on user authentication and endpoint setup, check the Djoser documentation.
This project is licensed under the MIT License. See the LICENSE file for more details.