Skip to content

BNext-IQT/delayed-jobs-api

Repository files navigation

Delayed Jobs

This API runs jobs such as generating CSV files or doing substructure and blast searches.

How to Run it Locally

python version: 3.7 You must create a configuration file and set its path to CONFIG_FILE_PATH. For examples, see the configurations folder.

pip install -r requirements.txt
CONFIG_FILE_PATH=<Path to your configuration file> FLASK_APP=appflask run

Open http://127.0.0.1:5000/ in your browser

Running Static Analysis

find . -iname "*.py" | xargs pylint

Running Unit Tests

python -m unittest

Running Functional Tests

  1. Start a server locally
pushd app/functional_tests
 ./run_functional_tests.py
popd
  1. Stop the server

Docker

This app can be run completely using Docker and docker-compose. First, you need to create a file called 'config.yml' with the app configuration. See the configurations folder for examples.

To run the development version of the app:

docker-compose up delayed-jobs-server-dev

To run the production version of the app:

docker-compose up delayed-jobs-server-prod

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages