Skip to content
/ woms Public

a microservice to provide fast real-time metadata for NYPR's audio streams

License

Notifications You must be signed in to change notification settings

jwdashel/woms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NYPR Whats-On

CircleCI Test Coverage Maintainability

The NYPR "whats-on" service accepts XML from the NexGen/DAVID radio systems and keeps information about what's currently playing in a key:value store.

Development

  • Requires Python 3.6+

Getting Started

Clone the Repo

git clone git@github.com:nypublicradio/whats-on-microservice
cd whats-on-microservice

Install the Requirements

python -m venv ~/.virtualenvs/whats-on
. ~/.virtualenvs/whats-on/bin/activate

pip install -e .
python setup.py test_requirements

Running Tests

pytest

Configuration

⚠️ No configuration is required for local development or tests.

Legend

Symbol Translation
Not required.
🔴 Required.

Values

Required Config Value Description
🔴 DYNAMODB_TABLE The DynamoDB table to store values.
URL_PREFIX API requests must be prefixed with this [Default: /whats-on]
RELEASE Release to report to Sentry [Default: None]
ENV Environment to report to Sentry [Default: None]
SENTRY_DSN URL for reporting uncaught exceptions [Default: None].

⚠️ The IAM execution role for the Lambda must be able to read/write from the specified DynamoDB.

Deployment

Overview

There are two deployment environments, demo and prod. Both environments are arranged in the same architecture, which is maintained here.

  1. The project is tested via CircleCI.
  2. If tests pass, the Lambda zip is built and pushed to AWS.

Demo

The demo environment is for staging work.

Any commit to the master branch will trigger a demo deployment.

Prod

The prod environment is for versioned releases.

To release to prod create a release via GitHub.

The release format is v<Major>.<Minor>.<Fix>.

About

a microservice to provide fast real-time metadata for NYPR's audio streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages