This repository demonstrates how to implement JWT (JSON Web Token) authentication in a Django REST Framework application. JWT authentication is a popular method for securing APIs, providing a robust and stateless way to manage user authentication.
- Clone the repository:
[email protected]:suman154/JWT-Authentication.git
cd JWT
- Create a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt
- Run database makemigrations & migrate:
python manage.py makemigrations
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Start the development server:
python manage.py runserver