• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    JavaScript
  • Created almost 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Django REST Framework + Vue.js CRUD Demo Secured Using Auth0

Django Auth0 Vue demo

This is an example CRUD (Create-Read-Update-Delete) application which demonstrates how to create a modern web application with a Django backend (Django REST Framework API), a Vue.js front-end and Bootstrap 4 for styling. The REST API is secured with JWT using Auth0.

For separate apps buil for part 1 (master branch) and part 2 (part2 branch) of the tutorial series, make sure to check this repo instead

To learn how to build this demo app you can follow these tutorial series

By following this simple example and the accompanying tutorial(s) you'll learn:

  • How to build a simple API using Django REST Framework
  • How to add pagination to your API
  • How to create, read ,update and delete database records
  • How to add JWT authentication to your API using Auth0
  • How to build a front-end application with Vue.js
  • How to consume a REST API from a Vue.js application (using Axios)
  • How to create authentication guards for your views
  • How to integrate Django, Webpack and Vue.js for development and production

Installing

You need to have virtualenv and Python 3 installed (Django 2 requires Python 3) then:

First create a new virtual environment and activate it with:

 virtualenv -p python3 env
 source env/bin/activate

Next, clone the project from Github:

git clone https://github.com/techiediaries/django-auth0-vue
cd django-auth0-vue

Install the project requirements using pip:

pip install -r requirements.txt

If the installation of the cryptography package fails make sure to install the python3-dev package. In Ubuntu you can use the following command:

sudo apt-get install python3-dev

Next install the Vue.js dependencies and run the front-end dev server with:

cd vueapp
npm install
npm run dev

Finally migrate the database then run the Django dev server with:

python manage.py migrate
python manage.py runserver

You can now navigate with your web browser to http://localhost:8000 and start playing with the demo.

Home Page

Product List Page (List and Delete)

Product Create/Update Page

More Repositories

1

fake-api-jwt-json-server

A Fake API with JWT Authentication using json-server and jsonwebtoken
JavaScript
268
star
2

ngx-qrcode

An Angular 9/10 Component Library for Generating QR (Quick Response) Codes
TypeScript
190
star
3

django-react

This a simple Django and React demo application
JavaScript
111
star
4

django-crm

A Simple Django CRM (Customer Relationship Management) RESTful API Project
Python
78
star
5

angular-cookbook

Angular 10/9 Cookbook
57
star
6

ng-crm

A Simple Angular 6 CRM (CRUD Example)
TypeScript
49
star
7

python-electron-app

Very Simple Python App with Electron GUI which demonstrates Python/Node.js-Electron Communication
JavaScript
40
star
8

vue-capacitor-ionic-app

A Mobile Demo App with Vue, Capacitor and Ionic 4 Components
JavaScript
37
star
9

angular-httpclient-examples

Angular 6/7/8/9 HttpClient CRUD Examples
TypeScript
32
star
10

django-graphql-graphene-example

A Django GraphQL API example with Django Graphene
Python
24
star
11

angular-router-demo

Angular 4|5 Router
TypeScript
22
star
12

angular-bootstrap-demo

Angular 7 & Bootstrap 4 Demo
TypeScript
19
star
13

ionic-news-app

Ionic 4 News Application
TypeScript
19
star
14

angular-material-demo

Angular Material Demo App
TypeScript
18
star
15

angular-pwa

Angular 6 PWA Example
TypeScript
17
star
16

nestjs-upload-serve-file

Nest.js Example with File Uploading and Serving
TypeScript
16
star
17

nestjs-crud-rest-api

Nest.js CRUD REST API Example
TypeScript
16
star
18

angular7-router-demo

Angular 7 Router Demo
TypeScript
13
star
19

angular-portfolio

Angular 7 Portfolio Web Application
TypeScript
13
star
20

ionic-react-news-app

Ionic 4 React App
CSS
13
star
21

chatkit-nestjs-ionic

TypeScript
13
star
22

invoice-electron-angularjs-app

An invoice desktop app built using Electron and Angularjs.
JavaScript
13
star
23

electron-vue-example

Electron & Vue.js Example
Vue
12
star
24

php-jwt-authentication-example

PHP JWT Authentication Example
PHP
11
star
25

angular-calculator-app

Angular 8/9 Calculator Example and Tutorial
TypeScript
10
star
26

electron-angular-demo

Angular 7 & Electron Demo Desktop App
TypeScript
10
star
27

nest-angular-crud

Nest.js & Angular 7 CRUD REST API
TypeScript
10
star
28

react-pokemon

React & Apollo App that consumes and renders a GraphQL API for Pokémons
JavaScript
10
star
29

angular-php-example

Angular 7/8/9 Application with PHP Back-End Example
TypeScript
10
star
30

ionic-vue

A Simple Ionic 4 App with Vue and Cordova
JavaScript
9
star
31

electron-nedb-demo

An example demo app created with Electron and NeDB (for Persisting Data)
CSS
9
star
32

electron-mysql-demo

A Demo and Example App Created with Electron and MySQL Node.js Module
CSS
8
star
33

vue-php-rest-api-crud-example

PHP with Vue.js & MySQL: REST API CRUD Example
PHP
8
star
34

awesome-capacitor

An awesome list of Capacitor (with or without Ionic) resources such as online tutorials, courses, books and plugins etc.
8
star
35

angular-express-jwt

Angular 6 with Express.js (json-server) RESTful API Backend Secured with JWT
TypeScript
7
star
36

vue-cli-plugin-capacitor

Vue CLI 3.x/4.x plugin for Ionic Capacitor.
JavaScript
7
star
37

nestjs-jwt-authentication

Nest.js JWT Authentication Example
TypeScript
6
star
38

jekyll-autonofollow

jekyll-autonofollow is a Jekyll plugin that adds rel="external nofollow" and target="_blank" to all external urls in your posts.
Ruby
6
star
39

angular-web-component-demo

Angular Web Component Demo
TypeScript
6
star
40

ionic-javascript-starter

A simple starter with plain JavaScript and Ionic 4 Web Components
JavaScript
6
star
41

python-django-crm-rest-api

A simple CRM REST API built with Python and Django
Python
6
star
42

chrome-console-snippets

Snippets for Chrome DevTools Console
JavaScript
5
star
43

ionic-authentication-example

Ionic 4 Authentication Example Demo
TypeScript
5
star
44

django-angular-file-upload-example

Django REST Framework Image File Upload Tutorial & Example [FormData & Angular 7 UI]
TypeScript
5
star
45

angular-universal-demo

In this tutorial we'll see how to render Angular 4 universal apps on the server
TypeScript
4
star
46

php-angular-file-upload

Angular 7 and PHP File Upload Example
TypeScript
4
star
47

djangovue

Django with Vue and Auth0
JavaScript
4
star
48

unoptimized-pwa

CSS
4
star
49

virtual-arabic-keyboard

A virtual arabic keyboard built using Angular.js
CSS
4
star
50

techiescommunity

A community for techies for discussions about web development and coding problems..
4
star
51

angular-18-movies-app

In this tutorial, we'll be using Angular 18, the latest version of Angular, the popular platform for building front-end web applications with TypeScript. The latest version, released on May 22, brings a set of new features and enhancements that we will leverage to build a robust movies application.
TypeScript
4
star
52

chatkit-ionic-demo

TypeScript
3
star
53

bootstrap4-masonry

Bootstrap 4 Masonry-like (Pinterest-like) Example
HTML
3
star
54

chatkit-one-to-one-rooms

TypeScript
3
star
55

ionic-capacitor-pwa

A PWA Built with Ionic 4, Angular and Capacitor.
TypeScript
3
star
56

dynamic-themes-css-variables

Demo example of dynamic theming with CSS variables and JavaScript
HTML
3
star
57

learn-ionic-2-3-complete-list-resources

This is a complete list of 20+ resources to learn Ionic 2 / Ionic 3
3
star
58

ngx-jwtauth

An Angular 4.3+ library for adding JSON Web Token (JWT) Authentication in Angular 4.3+ apps
JavaScript
3
star
59

angular-9-httpclient-example

Angular 9 HttpClient Example
TypeScript
3
star
60

vue-shopping-cart

A Vue Shopping Cart Application Demo
JavaScript
3
star
61

react-bootstrap-example

React Bootstrap 4 Example
JavaScript
2
star
62

svelte-news-app

Svelte 3 News App
HTML
2
star
63

angular-forms-authentication-example

TypeScript
2
star
64

node-expressjs-authentication-example

JavaScript
2
star
65

angular-file-upload-progress-bar

Angular 7 File Upload and Porgress Bar Example
TypeScript
2
star
66

application-gestion-commerciale-electron

Une application de gestion commerciale simplifiée crée avec Electron, AngularJS 1.x et Sequelize ORM
CSS
2
star
67

ionic2-electron

Ionic 2 + Electron example for a desktop app built using Split Pane and grid system
HTML
2
star
68

ionic-crud-example

Your First Ionic 4 App with CRUD Example
TypeScript
2
star
69

ionic4-angularjs

A Simple Ionic 4 with AngularJS and Cordova
CSS
2
star
70

laravel-crud-example

Your First Laravel 5.7 CRUD Example & Demo
PHP
2
star
71

django-rest-file-upload

Django Restful File Upload with Django REST Framework
Python
2
star
72

ionic2-printing-example

An Ionic 2 project showing how to print to PDF or Paper using Ionic 2 ,Ionic Native and Cordova
CSS
2
star
73

react-json-fetch-rest-api-example

React Fetch JSON REST API Example
JavaScript
2
star
74

ionic-todo-app

Ionic 4 Example ToDO App
TypeScript
2
star
75

django-angular-multiple-file-upload

Multiple File Upload with Angular 7 and Django REST Framework
TypeScript
2
star
76

electron-mongoose-demo

An Example Electron Demo that Shows how To Persist Data with MongoDB and Mongoose
CSS
2
star
77

jsjargonpwaprod

JavaScript
1
star
78

ruby5-angular2-app

Example Ruby 5.1.4 with An Angular 2+ (currently 4) front-end
Ruby
1
star
79

nestjs-chatkit-demo

TypeScript
1
star
80

angular-bootstrap-app

TypeScript
1
star
81

vue-cli-plugin-bundle-tracker

Vue CLI 3 Plugin for tracking Webpack bundles
JavaScript
1
star
82

modern-css-javascript

Modern CSS and JavaScript Web Site/App Project
HTML
1
star
83

optimized-pwa

HTML
1
star
84

nextjs-auth-prisma

By following this tutorial, you'll create a modern authentication application with Next.js 14 server actions, NextAuth.js v5, Zod for form validation, and Prisma for the database. This stack provides a powerful combination of tools for building secure and scalable web applications with robust authentication features.
TypeScript
1
star
85

ethereum-truffle-react

JavaScript
1
star
86

ng2-qrcode-reader

An Angular 4+ Component library for Reading QR (Quick Response ) Codes .
JavaScript
1
star
87

vue-graphql-demo

Vue.js GraphQL Demo Example with Apollo
Vue
1
star
88

my-github-website

This is the repository accompanying the tutorial about How to setup a custom domain for your github hosted website on this link
HTML
1
star
89

ionic2-inappbrowser-example

This is an example of Ionic 2 application that shows you how to work with Ionic Native and Cordova plugin InAppBrowser to open external URLs
CSS
1
star
90

angular-routing-demo

Angular 7 Routing Demo Example
TypeScript
1
star
91

angularmonorepo

HTML
1
star
92

node-express-jwt

Node Express JWT Authentication — jsonwebtoken and bcryptjs
JavaScript
1
star
93

ngx-autolinked

An Angular 4+ Component to parse links (urls ,emails ,phones ,hashtags and mentions ) in text into clickable links
JavaScript
1
star
94

nestjs-chatkit

TypeScript
1
star
95

xcli

A CLI tool for scaffolding front-end web projects based on popular frameworks like Angular, React, Vue and Ionic etc.
JavaScript
1
star
96

vue-cli-plugin-bootstrap

Vue 4 CLI Plugin for Bootstrap 4
JavaScript
1
star
97

react-jsjargon

A React + Redux + Axios Application
JavaScript
1
star
98

techiediaries.github.io

CSS
1
star
99

vue-wijmo-datatable

Vue
1
star
100

chatkit-profiles-read-cursors

TypeScript
1
star