This repository contains the "declared." front end and data store for declarations from the open registers of interest project.
Related respositories:
Use the docker files found in oroi-depoly e.g.
docker-compose -f docker-compose-declaration_nav-load.yml up -d
Services required:
Note this has been tested with python 3.8
$ virtualenv .ve --python=python3
$ source .ve/bin/activate
$ pip install -r requirements.txt
$ oroi/manage.py load_scrape_data postgresql://postgres-uri table_name
Omit table_name
to load all tables
Example:
$ oroi/manage.py load_scrape_data postgresql://datastore:datastore@127.0.0.1:5432/datastore ukparl_twfy
$ oroi/manage.py search_index --rebuild # See also --help
To avoid having to create a CSV file at the time of request it is generated statically. Use the following command to create the download:
$ manage.py csv_user_dump_all
The settings for CSV file including the output location are set in oroi/settings.py