ft-interactive/stream-content

Name: stream-content

Owner: FT Interactive News

Description: Assembles and outputs content fragments used in various stream pages

Created: 2016-02-15 19:21:36.0

Updated: 2017-08-21 12:50:27.0

Pushed: 2017-11-16 12:54:54.0

Homepage:

Size: 280

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

stream-content

ft-ig-stream-content

Assembles and outputs content fragments used in various stream pages, e.g. Brexit and US Election.

Warning: this serverside application has no caching, no efficiency ? it builds every response from scratch, including loading content from remote URLs. It will break if put under heavy load. Must have a CDN or poller in front of it.

Developing
  1. clone this repo
  2. add a .env file with those variables described in app.json (you'll need to get the actual values off another dev)
  3. npm install
  4. npm run develop
  5. code away

Things should refresh in your browser automatically.

Deploying
  1. Optional: make a PR into master, and Heroku will deploy you a live review app so you can check it works OK in production. (Heroku will post a link automatically shortly after you create the PR.)
  2. When you merge a PR into master (or just commit directly to master) Heroku will deploy to the prod app.

You can check deployment status on the Heroku dashboard.

Licence

This software is published by the Financial Times under the MIT licence.

Please note the MIT licence includes only the software, and does not cover any FT content made available using the software, which is copyright © The Financial Times Limited, all rights reserved. For more information about re-publishing FT content, please contact our syndication department.


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.