Skip to content

Cookiecutter template with Django REST Framework and Vue JS

Notifications You must be signed in to change notification settings

arsenlosenko/cookiecutter-drf-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

cookiecutter-drf-vue

Lightweight cookiecutter template which includes config files for Django, Django REST Framework and Vue JS.

Create your project

If you don't have cookiecutter, install it:

pip install cookiecutter --user

Then create your project:

cookiecutter https://github.com/arsenlosenko/cookiecutter-drf-vue

Features

Local Development

  1. Create virtualenv
pip install virtualenv --user
cd <your-cookicutter-project>
virtualenv -p python3 venv
source venv/bin/activate
  1. Install python dependencies
# inside of virtualenv
pip install -r requirements.txt
  1. Install javscript dependencies
# inside projects directory
npm i
  1. Build development bundle
# just build dev bundle
npm run dev_build

# rebuild on file change
npm run dev_serv

# build for production
npm run prod_build
  1. Initial migrations
python manage.py makemigrations
python manage.py migrate
  1. Runserver
python manage.py runserver

About

Cookiecutter template with Django REST Framework and Vue JS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published