Skip to content

jbehuet/django-vuejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJANGO AND VUEJS

First test for stack Django and VueJS

How to

Requirements :

  • Python
  • NodeJS
  • SQLite

Django

We'll be installing Django and Djangorestframework.

You can install it in a virtual environment or globally. The first is recomended.

Create a virtual environment (optional)

With virtualenv

$ virtualenv venv

With the venv library (Python 3.3 or latter)

$ python -m venv venv

Activate your virtual environment

Posix: $ source venv/bin/activate

Windows: venv\Scripts\activate

Install

$ pip install -r requirements.txt

Prepare database

$ python backend/manage.py makemigrations todos

$ python backend/manage.py migrate

Create SuperUser

$ python backend/manage.py createsuperuser

Install node modules

$ npm install

and into frontend-src folder

$ cd frontend-src && npm install

Build frontend

$ gulp build

Run

$ python backend/manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published