This code requires Python 3.7
Create a Python virtual environment called venv
and install Flask dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
You can run the application locally with
python3 run.py
The application will be live on http://0.0.0.0:5000/
git submodule add [email protected]:CONP-PCNO/conp-dataset data
The search will be executed on this data
repository
Create a localhost Postgres database named conp
with owner postgres
createdb conp --owner=postgres
Export database credentials with
export DATABASE_URL="postgresql://localhost/conp"
If you get a fe_sendauth: no password supplied
error, then use this command instead
export DATABASE_URL="postgresql:///conp"
Create tables with
flask db upgrade
Some experimental testing cases are being explored with AWS Cloud 9.
To run the application on a Cloud9 instance:
flask run --host=0.0.0.0 --port=8080
This flask application is deployed on Heroku. More information will be available soon