Skip to content

lapcchan/django-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django 3.1.0 with vue non-SPA or hybrid mode

  • vuetify ^2.4.1
  • vue ^2.6.11
  • vuex ^3.5.1
  • vuex-persistedstate ^3.0.1
  • axios ^0.21.1
  • webpack 4
  • sass eslint django-webpack-loader
  • production ready with both Zopfli and Brotli compression build, chunked assets

Everyone knows the advantage of SPA nowaday but theres always a reason not to use SPA, especially for enterprise grade application with some high volume marketing landing page, you want to avoid preloading all code while you still want to share codes and keep them maintainable, it's when you need hybrid mode with django

project env setup

virtualenv myproject 
cd myproject
source bin/activate

git clone

git clone `this repo` repo

install django and dependency

cd repo
pip install -r requirements.txt

run vue development server

cd vue
yarn install
yarn start

more info, check readme inside vue folder

django development server startup

python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

further info

my codes based on this article.

About

django 3 with vue non-SPA hybird mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages