A Flask-React project for serving the user interface and pre/post processing of idiom specific searches to an Elasticsearch database. A demo is available here: https://datainnovation.cardiff.ac.uk/idiometry/
The following will install the packages according to the configuration:
To run the Flask server (from parent directory):
If you're using an IDE like pycharm it may also be worth marking the flask-backend
directory as the sources route so that relative imports are interpreted properly.
To run tests relating to the processing functions:
First make sure node dependencies are installed:
Modifications to the front end can be applied by running a build within the react-frontend
directory:
This will update the static files in the flask-backend
directory.
Main app HTTP functions: flask-backend/app.py
The individual back-end processing functions: flask-backend/static/python/process_functions.py
Tests for individual back-end processing functions: flask-backend/static/python/test_process_functions.py