Basic commit to add get pages showing

- bootstrap script
- run script
- couple of views
- basic config
This commit is contained in:
Martyn Inglis
2015-12-10 10:56:59 +00:00
parent 761e7b4444
commit e25ca0e434
11 changed files with 169 additions and 6 deletions

View File

30
scripts/bootstrap.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
#
# Bootstrap virtualenv environment and postgres databases locally.
#
# NOTE: This script expects to be run from the project root with
# ./scripts/bootstrap.sh
set -o pipefail
function display_result {
RESULT=$1
EXIT_STATUS=$2
TEST=$3
if [ $RESULT -ne 0 ]; then
echo -e "\033[31m$TEST failed\033[0m"
exit $EXIT_STATUS
else
echo -e "\033[32m$TEST passed\033[0m"
fi
}
if [ ! $VIRTUAL_ENV ]; then
virtualenv ./venv
. ./venv/bin/activate
fi
# Install Python development dependencies
pip3 install -r requirements_for_test.txt

3
scripts/run_app.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
python application.py runserver