/django-vue

Django-Vue scaffold for local development

Primary LanguagePythonMIT LicenseMIT

django-vue

Django Vue scaffold. Runs with docker-compose. Requires nginx so that the vue.js front end can leverage cookie based auth within Django.

Running

Docker

Start

docker-compose up

Nativate to localhost:8000 to view api Nativate to localhost:8080 to view client

To run Tests:

make test

Stop (clears the db)

$ docker-compose down -v

Or shorthand:

$ make stop

Locally

  1. Start Postgres
make dbstart
  1. Start Cient in new terminal
$ cd client
$ npm run serve

Run tests with:

npm run unit
  1. Run migrations (if needed), Start API in new terminal
$ cd backend
$  pip install -r requirements.txt
$ ./manage.py migrate 
$ ./manage.py runserver

Run tests with:

$ tox

Nativate to localhost:8000 to view api