Skip to content

Template: drf-api+ jwt-auth + vue-pwa πŸš€ πŸ‘¨β€πŸ’»

License

Notifications You must be signed in to change notification settings

rk4bir/full-stack-drf-vue-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

drf-vue-boilerplate

django-rest-framework vue boilerplate with JWT authentication

Local setup

Local setup with docker: backend and pwa

docker-compose up --build

Local setup without docker

Features

Backend / API server

  • Auth user model
  • Environment based project settings: make use of DJANGO_ENV environment variable to use different settings -> ref
  • JWT based authentication: Authorization header expects as Token <access_token>, feel free to change here
  • Endpoints
    • User/Account model
      • /v1/account/<username>/: retrieve user data
      • /v1/account/<username>/update/: update user data
    • Token
      • /v1/account/token/both/: authenticate with username and password, obtain token pair i.e. access_token and refresh_token
      • /v1/account/token/refresh/: refresh access_token with refresh_token
  • Testing and code coverage report with pytest
  • Style guide enforcement with flake8
  • Dockerized

PWA: progressive web application

Demo

pwa demo