# Rack::Newsstand Newsstand was introduced in iOS 5 to give publishers a common framework to syndicate content. `Rack::Newsstand` provides webservice endpoints for issue data, as well as a Newsstand Atom feed. ## Requirements - PostgreSQL 9.1 running locally ([Postgres.app](http://postgresapp.com) is the easiest way to get a Postgres server running on your Mac) ## Example Usage Rack::Newsstand can be run as Rack middleware or as a single web application. All that is required is a connection to a Postgres database. ### Gemfile ```ruby source "https://rubygems.org" gem 'rack-newsstand' gem 'pg' ``` ### config.ru ```ruby require 'bundler' Bundler.require run Rack::Newsstand ``` An example application can be found in the `/example` directory of this repository. ### `GET /issues` (`Accept: application/x-plist`) ```xml name magazine-1 title Magazine Issue 1 summary Lorem ipsum dolar sit amet date 2013-04-19T12:00:00Z covers SOURCE http://example.com/assets/covers/magazine-1.png content http://example.com/assets/content/magazine-1.pdf ``` ### `GET /issues` (`Accept: application/application/atom+xml`) ```xml magazine-0 2013-04-30 09:59:54 -0700 2013-04-30 09:59:54 -0700 ``` ## Contact Mattt Thompson - http://github.com/mattt - http://twitter.com/mattt - m@mattt.me ## License Rack::Newsstand is available under the MIT license. See the LICENSE file for more info.