dasdachs / django-vuejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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


Languages

Language:Python 46.3%Language:JavaScript 40.4%Language:Vue 9.1%Language:HTML 3.9%Language:CSS 0.3%