spoonbill-web

A web frontend to convert OCDS data from JSON to Excel/CSV

Backend installation

docker-compose build app
docker-compose up

Application will be available on http://localhost:8000

Development

git clone [email protected]:open-contracting/spoonbill-web.git
cd spoonbill-web

Installation use direnv

direnv allow
pip install -r requirements_dev.txt

Installation without direnv

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements_dev.txt

Run application

docker-compose up -d postgres redis
python manage.py makemigrations && python manage.py migrate
python manage.py runserver

Celery

  • Up celery worker
celery -A spoonbill_web worker -l INFO --concurrency=2
  • Up celery beat
celery -A spoonbill_web beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler

Pre-Commit

Installation

pip install pre-commit

Install the git hook scripts

pre-commit install

Edit a pre-commit configuration

Configuration placed in file .pre-commit-config.yaml

More about pre-commit

Internationalization and Transifex

Generate pot files

python manage.py makemessages --all --keep-pot

Push pot files to transifex

tx push -st

Pull translations and compile message files

tx pull -a
django-admin compilemessages

GitHub

View Github