- Clone repository (git clone ...)
- Setup python virtualenv (virtualenv ...) (See 'Setup Virtualenv' section below)
- Get require python packages (pip install -r requirements.txt)
- Migrate django db from new virtualenv (python manage.py migrate)
- Collect static files (python manage.py collectstatic --noinput)
- Create new user (python manage.py createsuperuser)
- Collect NPM packages (npm install)
- Start webpack dev server (npm run dev)
- Start the django dev server (python manage.py runserver --nostatic)
- Open localhost:8000 in web browser
- The django / python setup is for creating and requesting data from an api endpoint
- When doing frontend developing, you should do it in the src folder using VueJS
- Webpack is setup to automatically update the webpage when you save a change in VueJS (if currently being viewed in browser)
- Make sure you have python installed (https://www.python.org/downloads/)
- pip install virtualenv
- virtualenv venv (
venv
is whatever env name you want)
- http://localhost:8000 - main dev site url
- http://localhost:8000/api/ - api main url
- http://localhost:8080/ - the webpack dev server
- http://localhost:8000/workflow/1/ - demo of system we need redone in VueJS
- http://localhost:8000/admin/ - control panel for django (can be use to add/remove workflows)
In this project we are merely trying to convert our current workflow system into VueJS. We would like the new system to look like the current but instead of being integrated into django we will use the new apis I have created in this project to populate the VueJS interface.