A Django-backed Vue.js frontend ready for deployment on Heroku based on this starter code. Also contains Celery, hot-reload, eslint!
Make sure you have the following installed on your system
- Node.js
- Python 3.6.1
- PostgreSQL
- RabbitMQ
- Redis
- Create the database
$ psql
username=# CREATE USER django_vuejs_heroku_starter_user WITH PASSWORD 'password';
username=# CREATE DATABASE django_vuejs_heroku_starter;
username=# GRANT ALL PRIVILEGES ON DATABASE django_vuejs_heroku_starter to django_vuejs_heroku_starter_user;
username=# \q
- Create a Python virtualenv
$ pyenv virtualenv 3.6.1 django-vuejs-heroku-starter-3.6.1
These steps will install all required dependencies including development ones, run migrations and start dev server.
make dev
make migrate
make run
These steps will install productio dependencies and build vuejs application to static/dist
folder.
make prod
make build