Skip to content

open-contracting/spoonbill-web

Repository files navigation

spoonbill-web

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

Install requirememnts

pip install -r requirements_dev.txt
pre-commit install
cd frontend
npm install

Run tests

coverage run --source=core,spoonbill_web -m pytest -W error --no-migrations
cd frontend
npx vue-cli-service lint
npx vue-cli-service test:unit

Run servers

./manage.py migrate
./manage.py runserver
cd frontend
npx vue-cli-service serve

Run workers

Start celery worker:

celery -A core worker -l INFO --concurrency=2

Start celery beat:

celery -A core beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler

Internationalization

For Django, see the Software Development Handbook.

Vue

Change to the frontend/ directory:

cd frontend

Extract messages:

npx gettext-extract --removeHTMLWhitespaces --output messages.pot src/main.js $(find src -type f -name '*.vue')

Push and pull messages from a translation tool, or use pybabel and then edit PO files to translate strings:

uv run pybabel update -N -i messages.pot -d locale

Compile messages:

npx gettext-compile --output src/translations/translations.json locale/*/LC_MESSAGES/messages.po

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 15