This is the API service which is build as a Flask Application. It runs independent of the Nuxt.js web-application.
Make sure you have python 3 installed python3 --version
python3 -m venv ./venv
. ./venv/bin/activate
pip install -r requirements.txt
gunicorn main:app
If you do not have the NIH SPARC portal user environment variables setup already:
- Create a .env file with the configuration variables of the NIH SPARC portal user or add them to your bash profile.
- If you created a separate file, run source {fileName}.env.
After the previous steps or if you already have those environment variables setup, run:
export PYTHONPATH=`pwd`
pip install -r requirements-dev.txt
pytest