Skip to content

Tehsurfer/sparc-api

 
 

Repository files navigation

Overview

This is the API service which is build as a Flask Application. It runs independent of the Nuxt.js web-application.

Requirements

Python 3

Make sure you have python 3 installed python3 --version

Running the app

python3 -m venv ./venv
. ./venv/bin/activate
pip install -r requirements.txt
gunicorn main:app

Testing

If you do not have the NIH SPARC portal user environment variables setup already:

  1. Create a .env file with the configuration variables of the NIH SPARC portal user or add them to your bash profile.
  2. 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

About

SPARC Portal API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%