Skip to content

vollbrechtlab/primer-server-rest-api

Repository files navigation

Primer Server REST API

Introduction

server.py is REST API for primerDAFT. It uses a separate thread for each task request.

Setup

# Give permission to the scripts
chmod +x scripts/*.sh

# Install virtual environment if not yet
sudo pip3 install virtualenv

# Create a virtual environment
virtualenv -p python3 venv

# Install packages
venv/bin/pip3 install -r requirements.txt

Useage

# run server as gunicorn deamon
scripts/start_server.sh

# stop gunicorn deamon
scripts/stop_server.sh

Development

source venv/bin/activate
python3 server.py