GitHunt
IL

ilveroluca/backend

DeepHealth Toolkit back-end

DeepHealth Toolkit back-end

Swagger online validator badge

The DeepHealth back-end interacts with the front-end, serving various APIs. It receives a configuration from the front-end then runs a deep learning pipeline based on PyECVL and PyEDDL.

API documentation: jenkins-master-deephealth-unix01.ing.unimore.it/backend/swagger

Installation

Requirements

  • Python3.6+
  • curl -- sudo apt install curl
  • PyECVL 0.2.0+ and PyEDDL 0.6.0+

Clone and install back-end with:

cd ~
git clone https://github.com/deephealthproject/backend.git
cd backend
pip install -r requirements.txt

Generate a new SECRET_KEY with:

python -c 'from django.core.management.utils import get_random_secret_key;print(get_random_secret_key())'

Edit the ~/config file to configure the application (SECRET_KEY, DB and RabbitMQ connection and other optional Django settings).

Celery

Install with: sudo apt install rabbitmq-server
and run the celery deamon with: python manage.py celery.

First run

The back-end is a web-server based on Django, so it must be initialized like any Django project.

cd ~/backend

# Apply all the migrations
python manage.py migrate

# Creating an admin user
python manage.py createsuperuser

# Load db default entries
python manage.py loaddata tasks.json property.json allowedproperty.json dataset.json model.json

# Start the development server
python manage.py runserver <my-server>:<my-server-port>

# Start celery
python manage.py celery

API Practice

The following table contains Postman collections for practicing with the backend.

Collection Postman Link
2nd Hackathon - Pneumothorax Run in Postman

Languages

Python98.7%Shell1.3%

Contributors

Other
Created June 16, 2020
Updated June 16, 2020