GithubHelp home page GithubHelp logo

cyruseftos / higgins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ocean/collator

0.0 2.0 0.0 36 KB

Higgins gets the news and looks after it until it is required.

License: MIT License

JavaScript 38.14% CSS 48.57% HTML 13.29%

higgins's Introduction

Higgins

Travis CI Build Status David dependencies Coveralls coverage Code Climate

Higgins gets the news, and looks after it until it is required.

This server listens on specific URLs for news feeds. When a feed is requested, it checks for cached news (using pantry) then delivers it as JSON, fetching from the upstream URL beforehand if required.

Data is plain JSON by default. JSONP can be requested by adding a ?callback=yourCallbackFunctionNameHere query parameter to the URL.

The cached news can be refreshed with another query.

Valid URL arguments are, in order:

http://[server]/v1/[feed-name][?forceRefresh=true][&[callback=callbackName]]
  • Feed name: required.
  • Force refresh: optional.
  • Callback: for JSONP requests, optional.

Usage

Give me the Ministerial Media Statements feed:

curl http://[server]/v1/ministerials

Force a fetch of a new copy of the Commerce Media Releases feed:

curl http://[server]/v1/commerce-media?forceRefresh=true

Test instance

A test instance of this app is running on Heroku at:

http://higgins-news.herokuapp.com/

TODO

  • Add JSONP capability. done!
  • Build a Ministerials feed from the Media Statements website.
  • Build a live train departure times feed from the Transperth website (with x-ray).
  • Add a unified feed endpoint with sorting via query string parameters.
  • Add caching of search results into Memcached (via Pantry's support).
  • Supply other feeds.
  • Support GraphQL

License

This news tool thingy is released under the MIT License (see the license file) and is copyright Drew Robinson, 2016.

higgins's People

Contributors

ocean avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.