bbc/connected-data-snowdrop

Name: connected-data-snowdrop

Owner: BBC

Description: Datalab Snowdrop

Created: 2017-10-20 11:54:44.0

Updated: 2018-05-23 05:14:51.0

Pushed: 2018-05-23 05:19:46.0

Homepage:

Size: 59

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Snowdrop API

Snowdrop is the public API component for the BBC App Powered by Connected Data. It provides a highly-tailored and targeted API for the mobile app, handling complex business logic and negotiation with back end systems.

Implemented with the Python 2 Flask microframework and running with Green Unicorn Python WSGI HTTP Server.

Run Locally
1. Create a virtualenv, install dependencies:
on3 -m venv venv
nv/bin/activate
install -r requirements.txt
2. Run the service:

This service depends on Amanita. Assuming you are running Amanita on port 5001, this is a possible way to run Snowdrop:

=5000 \
ITA_HOST=http://localhost:5001 \
ONPATH=.:$PYTHONPATH \
on -m app.snowdrop
3. Visit the application:
Tests

Install test dependencies:

install -r requirements_test.txt

Run tests:

est --cov-report term-missing --cov=app tests/ --cov-branch -vv
Check style
destyle app
Building & Deployment

This app is provided as with a Dockerfile which is used to build a container. This should then be pushed to a container registry and deployed either as a manual process or using something such as build triggers and a continuous delivery platform like Spinnaker.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.