Giter Site home page Giter Site logo

paulkinlan / ioreader Goto Github PK

View Code? Open in Web Editor NEW
59.0 4.0 6.0 1.34 MB

IO Reader - a news reading framework to enable you to target one news app to multiple devices.

Home Page: http://io-reader.com

License: Apache License 2.0

Shell 0.03% JavaScript 99.97%

ioreader's Introduction

io-reader server

This is a basic proxying server that has some state.

The server runs an instance of the configuration document, which includes the type of API proxy to use and the categories to display.

There are two API proxies included:

  • Guardian
  • NPR

Installation

Now you can install the dependencies:

npm install express mustache async less uglify-js

Running the app

./run.sh <CONFIG_NAME>

Where <CONFIG_NAME> is the name of a folder in <PROJECT_ROOT>/config.

Configuring your app

Each application needs a configuration to run, the configuration defines properties such as:

  1. The port and hostname for the application to listen on.
  2. The name and description of the application
  3. The directory where the client code is (it can be anywhere you want)
  4. The API proxy to use (Guardian, NPR, GoogleFeedApi etc)
    1. The parameters for the API, such as API Keys
  5. The columns to display in the app
    1. And proxy specific parameters

Example Configuration: Google Feed API

exports.config = { 
    id: "googlefeed",
    name: "Chrome Developer Relations",
    description: "All the latest news from around the Chrome team",
    version: "0.0.0.11",
    baseDir: "server/templates/",
    clientDir: "client/",
    categories: [
        { 
            id: "pk", url : "http://paul.kinlan.me/rss.xml", title: "Paul Kinlan"
        },
        { 
            id: "mm", url : "http://softwareas.com/rss.xml", title: "Mike Mahemoff"
        }, 
        {
            id: "ig", url : "http://greenido.wordpress.com/rss.xml", title : "Ido Green"
        },
        {
            id: "smus", url : "http://smus.com/rss.xml", title : "Boris Smus"
        }
    ],
    options: {
        appCache: "",
        port: 3000,
        proxies: {
            "googlefeed": {
                referer: "http://paul.kinlan.me/"
            }
        }
    }
};

Most of it is pretty self explanatory, the categories array is specific to the provider. The Guardian API proxy is a simple collection of category names. The NPR API proxy is a collection of category numbers.

For a given proxy, there might require some specific parameters such as API Keys.

ioreader's People

Contributors

paulkinlan avatar ebidel avatar mahemoff avatar berkerpeksag avatar

Stargazers

KEVIN PATRICK LANDRENEAU avatar Wellington Soares avatar Hemanth Reddy avatar moronkreacionz avatar Michael Anthony avatar Jake Callery avatar Ricki Runge avatar Rashaad Essop avatar Xiaoli Wang avatar JT5D avatar Romain Yon avatar Christopher McKenʒie avatar Cabeza de turco avatar Conard Carroll avatar jeep avatar Terje Knutsen avatar  avatar siva avatar Paul avatar Eser Poyraz avatar Jamar Parris avatar Stefan Wagner avatar Liang Cai avatar oskark avatar Mario Pietsch avatar Luigi Agosti avatar @printminion avatar Tosh Iba avatar Boris Smus avatar Bjarne Helland avatar Luca Colantonio avatar Tomas Mattia avatar Jos avatar Phil Wu avatar Alexander Ainslie avatar LLast Oatt avatar Yi Wang avatar Jonathan Stark avatar Tuan Kuranes avatar Andrii Yasinetsky avatar Ravi avatar Lane Allen avatar Roustem Karimov avatar Omar Karim avatar Ido Green avatar Stu Baserman avatar Robbie Clutton avatar  avatar Jesse Cravens avatar David Jacobs avatar Jim Newbery avatar Eugene Lazutkin avatar Filip Wasilewski avatar Nazrul Kamaruddin avatar Marcin Świerczyński avatar Robert Thurnher avatar Melissa P. avatar rchk avatar Attila Babo avatar

Watchers

 avatar James Cloos avatar Michael Anthony avatar  avatar

ioreader's Issues

Switching from Desktop to Tablet with story open

See screenshot:

Failing UI

There are other cases where this happens, but it seems to be consistent in the above case. I'll see if I can reproduce the others with a script to see if it's a timing thing.

Uncaught Exception on startup

When visiting the page, with FireBug running, I regularly see this message appear in the console:

uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://io-reader.com/scripts/desktop/controller.js :: <TOP_LEVEL> :: line 37" data: no]

Create an RSS proxy

It would be excellent if we could parse/configure RSS feeds so that people can quickly build their own apps.

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.