Languages/applications needed
- Python 3.5
- Postgres postgres
The app runs within a virtual environment. To install virtualenv, run
[sudo] pip install virtualenv
Install virtualenvwrapper
[sudo] pip install virtualenvwrapper
Create a database for the server
[sudo] createdb audree
Create a local environment.sh file containing the following:
echo "
export DJANGO_SETTINGS_MODULE='audree.settings.dev'
export DATABASE_URL='postgres://localhost/audree'
export SECRET_KEY='REPLACE ME WITH AN ACTUAL SECRET KEY'
"> environment.sh
Make a virtual environment for this app:
mkvirtualenv -p /usr/local/bin/python3.5 audree
Install dependencies
./scripts/bootstrap.sh
Running with django runserver:
workon audree
python manage.py runserver 0:8000
Then visit localhost:8000
Tests include a pep8 style check, django test script and coverage report.
workon audree
python run_tests.py