acdh-oeaw / diauma

A django-based wep application for the project: Austrian Dialect Cartography 1924–1956: Digitalisation Contextualisation and Visualisation
MIT License
0 stars 1 forks source link
django postgresql python3

[!WARNING] The application code is currently being revised and is not yet ready for production.

About

Diauma is a web application to manage maps and associated data for the project:

Austrian Dialect Cartography 1924–1956: Digitalisation Contextualisation and Visualisation: https://www.oeaw.ac.at/acdh/projects/austrian-dialect-cartography

It is a Django 1.11 web application, written in Python 3, developed at the Austrian Centre for Digital Humanities and Cultural Heritage (ACDH-CH ) and based on the Cremation Bronze Age Burials application (CBAB) project.

Licensing

All code unless otherwise noted is licensed under the terms of the MIT License (MIT). Please refer to the file COPYING in the root directory of this repository.

All documentation and images unless otherwise noted are licensed under the terms of Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/4.0/

Install

Required Software

To install the required libraries execute:

pip install -r requirements.txt

Configuration Files

Tests

Installation of required modules:

pip install -r requirements_test.txt

Run tests with HTML coverage report:

coverage run manage.py test -v 2
coverage report
coverage html

The report will be available at: htmlcov/index.html

Docker

At the ACDH-CH we use a centralized database-server. So instead of spawning a database for each service our services are talking to a database on this centralized db-server. This setup is reflected in the dockerized setting as well, meaning it expects an already existing database (either on your host, e.g. accessible via 'localhost' or some remote one)

building the image

docker build -t diauma:latest .
docker build -t diauma:latest --no-cache .

running the image

To run the image you should provide an .env file to pass in needed environment variables; see example below:

docker run -it -p 8020:8020 --rm --env-file docker.env --name diauma diauma:latest