Skip to content

Django REST API with custom user model, registration, JWT login/refresh and protected profile endpoint.

Notifications You must be signed in to change notification settings

Dan3006/drf-jwt-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRF JWT Starter

A minimal Django REST Framework template that implements secure JWT authentication, including:

  • Custom user model extending Django’s AbstractUser
  • User registration endpoint with password hashing
  • JWT login and refresh token endpoints
  • Protected profile endpoint requiring authentication

Designed as a backend foundation for full stack web applications.


Features

Endpoint Method Description
/api/register/ POST Create a new user account
/api/token/ POST Obtain JWT access + refresh tokens
/api/token/refresh/ POST Refresh access token
/api/profile/ GET Protected endpoint returning authenticated user data

Tech Stack

• Django • Django REST Framework • SimpleJWT authentication


Setup instructions

pip install -r requirements.txt python manage.py migrate python manage.py runserver

Notes

This project is part of my journey into full stack development.

Phase 1 – Full-Stack Expansion

Status: ✅ Completed

Added

  • Created api app with mock /api/workouts/ endpoint.
  • Configured CORS via django-cors-headers for React frontend access.
  • Integrated with React frontend for live JSON responses.

Run Locally

python manage.py runserver

About

Django REST API with custom user model, registration, JWT login/refresh and protected profile endpoint.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages