Test your IATI data against the Publish What You Fund Aid Transparency Index tests.
See the vagrant/README.md
file for details.
-
Clone the repository:
git clone --recursive https://github.com/pwyf/data-quality-tester.git cd data-quality-tester
-
Set up a virtualenv:
python3.7 -m venv .ve source .ve/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Copy (and edit, if you wish)
config.py.tmpl
:cp config.py.tmpl config.py
-
Set the environment variables:
export FLASK_APP=DataQualityTester/__init__.py export FLASK_ENV=development
…Or you can alternatively append it to
.ve/bin/activate
with something like:echo -e '\nexport FLASK_APP=DataQualityTester/__init__.py\nexport FLASK_ENV=development' >> .ve/bin/activate
-
Build the assets, download codelists, and set up the database:
flask assets build flask refresh-codelists flask db upgrade
-
Start a Redis server:
If you have a native install of redis server:
redis-server
Alternatively, you can also run it in docker:
docker run -d -p 6379:6379 redis
-
Start a celery worker:
celery --app DataQualityTester.celery worker
-
Start the webserver:
flask run