Token Based Authentication with Django, VueJs and Axios ( On Linux )

Token Based Authentication with Django, VueJs and Axios ( On Linux )
In this video we create a full token based authentication system using django, djangorestframework, vuejs and axios. We're using django on Linux

0:00 Setting up django environment
5:02 Django settings + urls
14:29 Testing API with CURL
18:05 Create Vuejs project, install axios
21:23 brief explanation vuejs + clean up
24:10 Create LogIn and SignUp views
29:30 Create Store to manage various user states
34:33 Set up lifecycle-hook and axios headers
39:21 SignUp view + axios requests
49:52 LogIn view + axios requests

In this video we create a full token based authentication system using django, djangorestframework, vuejs and axios. We’re using django on Linux

The project is set up to work inside a virtual environment. For this we use venv. We also use pip-tools to install all of our dependencies.

We use vue-cli to set up our vue project.

We use axios as our http client to communicate between our vue views and our djangorestframework backend.

Django packages that we use include:

  • django
  • djoser
  • djangorestframework
  • djangocorsheaders

Suggest:

Learn Vue.js from scratch 2018

Is Vue.js 3.0 Breaking Vue? Vue 3.0 Preview!

Vue.js Tutorial: Zero to Sixty

Learn Vue.js from Scratch - Full Course for Beginners

Create Shopping basket page With Vuejs and Nodejs

Learn Vue 2 in 65 Minutes -The Vue Tutorial for 2018