A web frontend to convert OCDS data from JSON to Excel/CSV
pip install -r requirements_dev.txt
pre-commit install
cd frontend
npm install
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
./manage.py migrate
./manage.py runserver
cd frontend
npx vue-cli-service serve
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
Extract messages:
./manage.py makemessages -a
Push to Transifex:
tx push -s -t
Pull from Transifex:
tx pull -a
Compile messages:
django-admin compilemessages
Change into the frontend/
directory:
cd frontend
Extract messages:
npx gettext-extract --removeHTMLWhitespaces --output web-app-ui.pot src/main.js $(find src -type f -name '*.vue')
Push and pull messages from Transifex as above.
Compile messages:
npx gettext-compile --output src/translations/translations.json <filenames>