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
Size: 59
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
on3 -m venv venv
nv/bin/activate
install -r requirements.txt
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
Install test dependencies:
install -r requirements_test.txt
Run tests:
est --cov-report term-missing --cov=app tests/ --cov-branch -vv
destyle app
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.