Skip to content

Latest commit

 

History

History
65 lines (35 loc) · 1.31 KB

README.md

File metadata and controls

65 lines (35 loc) · 1.31 KB

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