Skip to content

Workflow notes

Rudolph Pienaar edited this page Mar 31, 2017 · 5 revisions

Workflow notes

Abstract

This page describes a simple workflow in the ChRIS Ultron backend system. The workflow consists of getting a list of plugins, calling a 'simplefs' plugin, checking its status, calling a 'simpleds' plugin on this 'simplefs' output, and checking status.

Preconditions

source the python virtual environment

Note: your mileage may vary! Adjust the following where/as necessary for your local setup. These notes are accurate for Rudolph's setup!

First, source the python virtual environment

export WORKON_HOME=~/src/python-env
source /usr/local/bin/virtualenvwrapper.sh

and workon the relevant project:

workon chris_env
cd ~/src/ChRIS_ultron_backend/chris_backend

startup the django server

manage.py runserver localhost:8001

startup the pman server

pman --rawmode 1 --http --port 5010 --listeners 12

GET the homepage

./purl  --auth chris:chris1234                                  \
        --content-type application/vnd.collection+json          \
        --verb GET                                              \
        --raw --jsonwrapper template                            \
        --http localhost:8001/api/v1/                           \
        --quiet | underscore print --color
Clone this wiki locally