- repo to process nabucco xml-data (taken from orig-repo) into something more usabel (csv); be aware, to ease the parsing, I manually removed the namespaces from the original files
- evolved to application repo for generic nabucco app
- clone the repo
git clone https://github.com/acdh-oeaw/nabucco.git
- change into repo-folder
cd nabucco
- create a virtualenv, e.g.
python -m venv venv
and activate itsource venv/bin/activate
- install required packages
pip install -r requirements.txt
- create a postgres-db
nabucco
with user and pwpostgres
- or modifysettings.py
or set propper environment variables --> note that with Windows, PostgreSQL13 seems not to work: use version 12 - run
python manage.py makemigrations
thenpython manage.py migrate
andpython manage.py runserver
to migrate database and start the dev server - (in another window) run
python manage.py import_data
to, well, to import the data
optional:
- run
xml_to_csv.py
(parses xmls indata/xml
and writes data intodata/csv
, for each class one csv) and renamedata/csv/Archive.csv
todata/csv/Archiv.csv
docker build -t nabucco:latest .
docker build -t nabucco:latest --no-cache .
To run the image you should provide an .env
file to pass in needed environment variables; see nabucco/settings.py
for possible varibles:
docker run -it --network="host" --rm --env-file .env nabucco:latest