Sample Flask applications using the metapy bindings
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contrib Prepare NLP app for deployment. Jul 16, 2016
static Use relative path for nlp-api. Jul 16, 2016
.gitignore create flask NLP and search demos with metapy Apr 22, 2016
README.md fix readme instructions Apr 22, 2016
json_tree_visitor.py
nlp.py create flask NLP and search demos with metapy Apr 22, 2016
nlp_server.py
requirements.txt Move asset compilation into Python server code itself. Jul 16, 2016
search_server.py Minor refactoring of search_server for easier gunicorn use. Jul 16, 2016
searcher.py create flask NLP and search demos with metapy Apr 22, 2016

README.md

Initial Setup

When setting up the project initially, run

pip install --upgrade pip
virtualenv meta-pyenv
source meta-pyenv/bin/activate
pip install -r requirements.txt

Make sure you run the source command before working with this project. Alternatively, you can add it to your ~/.bashrc.

To leave the virtual environment, simply close your terminal or type deactivate.

Running the servers

To run the search engine server,

python search_server.py config.toml

To run the NLP demo server,

python nlp_server.py config.toml