Skip to content

Formulae-Litterae-Chartae/formulae-capitains-nemo

Repository files navigation


formulae-capitains-nemo

Coverage Status

This is the class extension "NemoFormulae" for flask_nemo.

A working instance of this extension for the Formulae - Litterae - Chartae Project can be found at https://werkstatt.formulae.uni-hamburg.de.

Getting Started

Further information:

Runnning the app locally:

Setup steps:

Only need to be executed the before the first time running the app:

  1. Clone the repositories:
    1. git clone formulae-capitains-nemo (code-base)
    2. git clone formulae-corpora (texts) (ideally in the same folder e.g., git as the code base)
  2. Create a Python virtualenv (e.g., virtualenv --python=python3 ~/envs)
  3. Only if needed: Set the environment variable CORPUS_FOLDERS and re-start the app.

Start the app:

  1. activate the virtualenv (e.g., source ~/envs/bin/activate)
  2. install the requirements via pip install -r requirements.txt within in the venv and from the formulae-capitains-nemo folder
  3. If the requirements have been installed properly, you can launch python app.py within the env and in formulae-capitains-nemo folder
  4. Reach the site via 127.0.0.1:5000

How are static files handled?

https://flask.palletsprojects.com/en/2.3.x/quickstart/#static-files

How to run the SPHINX documentation locally:

  1. Install sphinx: https://www.sphinx-doc.org/en/master/usage/installation.html
  2. Build the project: sphinx-build -M html docs/source/ docs/build/
  3. Open docs/build/html/index.html with your preferred browser: firefox docs/build/html/index.html