hsci-r / runoregi

A user interface for browsing text similarity in Finnic oral poetry.
https://runoregi.fi
Other
0 stars 1 forks source link

Runoregi

Runoregi is the Web front-end for verse and poem similarity calculations on Finnic oral folk poetry.

Setup

Python dependencies can be installed with the usual command:

pip3 install -r requirements.txt

As Runoregi is a front-end, it requires access to a MySQL database containing all the data (poem texts, metadata, similarities etc.) in order to work. The access is configured by the following environment variables:

A dump of the database, including SQL scripts to load the tables, is available in hsci-r/filter-db (currently not public).

In addition to the database access, the following further environment variables can be configured:

Running

For all the commands listed below, remember to set the environment variables (see above).

Local testing

The easiest way to run Runoregi for quick testing (e.g. if you're working with the code) is to run:

python3 wsgi.py

The interface will be available for local connections under localhost:5000.

Running with Gunicorn

To run Runoregi on a server and access it through the default HTTP port, it should be enough to run:

gunicorn wsgi

See Gunicorn documentation for more options.

Deployment on Rahti

In our project Runoregi is hosted on the CSC's Rahti service, with a Docker image built using Source-to-image. For deployment, you need to link to this repository, provide a pull secret (as long as the repository is private) and set the environment variables to access the database.

Docker images for deployment on an own platform might be provided in the future if needed.

License

MIT (see LICENSE)

Publications

There are no publications so far descibing specifically the front-end. You can cite Runoregi by referring to one of the publications that describe the back-end calculations: