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.
Further information:
- https://github.com/capitains/tutorial-nemo
- The app is configured via formulae/app.py
Only need to be executed the before the first time running the app:
- Clone the repositories:
git clone formulae-capitains-nemo
(code-base)git clone formulae-corpora
(texts) (ideally in the same folder e.g.,git
as the code base)
- Create a Python virtualenv (e.g.,
virtualenv --python=python3 ~/envs
) - Only if needed: Set the environment variable
CORPUS_FOLDERS
and re-start the app.
- activate the virtualenv (e.g.,
source ~/envs/bin/activate
) - install the requirements via
pip install -r requirements.txt
within in the venv and from theformulae-capitains-nemo
folder - If the requirements have been installed properly, you can launch
python app.py
within the env and informulae-capitains-nemo
folder - Reach the site via 127.0.0.1:5000
https://flask.palletsprojects.com/en/2.3.x/quickstart/#static-files
- Install sphinx: https://www.sphinx-doc.org/en/master/usage/installation.html
- For Debin/Ubuntu the OS-specific package manager worked best
- Build the project:
sphinx-build -M html docs/source/ docs/build/
- Open
docs/build/html/index.html
with your preferred browser:firefox docs/build/html/index.html