Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

rokups/hello-vue-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

849fd7d · Dec 27, 2017

History

9 Commits
Jan 4, 2017
Jan 4, 2017
Jan 4, 2017
Apr 26, 2017
Jan 4, 2017
Jan 4, 2017
Jan 4, 2017
Jan 4, 2017
Jan 4, 2017
Jan 4, 2017
Dec 27, 2017
Jan 4, 2017
Apr 26, 2017
Jan 4, 2017
Jan 4, 2017
May 22, 2017
Mar 5, 2017

Repository files navigation

hello-vue + Django

This is a boilerplate project for using vuejs with Django.

Features

  • Django backend in ./backend
  • vuejs (v2) frontend in ./frontend
  • Hot-reload with vue-loader
  • eslint linter integration
  • Makefile to make your life easy

Development environment setup

These steps will install all required dependencies including development ones, run migrations and start dev server.

make dev
make migrate
make run

Deployment

These steps will install production dependencies and build vuejs application to static/dist folder.

make prod
make build

Be aware

For the sake of simplicity Django config is contained within its own backend app. In real world setting you would probably want to remove backend from INSTALLED_APPS, create a new app and move backend.views to it.

You probably want to create python virtual environment as well. Default python instance available will be used.