Code Monkey home page Code Monkey logo

feedhq's Introduction

FeedHQ

Build Status

FeedHQ is a simple, lightweight web-based feed reader. Main features:

  • RSS and ATOM support
  • Grouping by categories
  • Awesome pagination and intelligent browsing
  • Built with readability in mind
  • Mobile-friendly, retina-ready
  • Reading list management with Instapaper, Readability or Read It Later support
  • Filter out already read entries
  • Control on entries' time to live (days, weeks, months or forever)
  • Nice with web servers, uses ETag and Last-Modified HTTP headers
  • Handles HTTP status codes nicely (permanent redirects, gone, not-modified…)
  • Hides images by default (and therefore filters ads and tracking stuff)
  • Multiple user support
  • PubSubHubbub support
  • OPML import
  • Syntax highlighting, awesome for reading tech blogs
  • Keyboard navigation

Installation

Getting the code:

git clone [email protected]:feedhq/feedhq.git
cd feedhq
virtualenv -p python2 env
source env/bin/activate
add2virtualenv .
pip install -r requirements.txt

Configuration

Create feedhq/settings.py and put the minimal stuff in it:

from default_settings import *

ADMINS = (
    ('Your name', '[email protected]'),
)
MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'feedhq',
        'USER': 'postgres',
    },
}

SECRET_KEY = 'something secret'

# For development, don't do cache-busting
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'

TIME_ZONE = 'Europe/Paris'

EMAIL_HOST = 'mail.your_domain.com'
EMAIL_SUBJECT_PREFIX = '[FeedHQ] '

For Readability, Instapaper and Pocket support, you'll need a couple of additional settings:

API_KEYS = {
    'readitlater': 'your readitlater (pocket) key',
}

INSTAPAPER = {
    'CONSUMER_KEY': 'yay isntappaper',
    'CONSUMER_SECRET': 'secret',
}

READABILITY = {
    'CONSUMER_KEY': 'yay readability',
    'CONSUMER_SECRET': 'othersecret',
}

Then deploy the Django app using the recipe that fits your installation (with mod_wsgi or mod_fcgi). More documentation on the Django deployment guide.

Once your application is deployed (you've run django-admin.py syncdb --settings=feedhq.settings to create the database tables), you can add users to the application. On the admin interface, add as many users as you want. When you've added some categories and feeds to your account, you can crawl for updates:

django-admin.py updatefeeds --settings=feedhq.settings

Set up a cron job to update your feeds on a regular basis. This puts the last-updated feeds in the update queue:

*/5 * * * * /path/to/env/django-admin.py updatefeeds --settings=feedhq.settings

A cron job should also be set up for picking and updating favicons (the --all switch processes existing favicons in case they have changed):

@daily /path/to/env/bin/django-admin.py favicons --settings=feedhq.settings
@monthly /path/to/env/bin/django-admin.py favicons --all --settings=feedhq.settings

And another job for checking feeds that have been muted because they were failing too much:

@daily /path/to/env/bin/django-admin.py check_defunct --settings=feedhq.settings

And a final one to purge expired sessions from the DB:

@daily /path/to/env/bin/django-admin.py cleanup --settings=feedhq.settings

Development

Install the development requirements:

pip install -r requirements-dev.txt

Run the tests:

make test

Or if you want to run the tests with django-admin.py directly, make sure you use feedhq.test_settings to avoid making network calls while running the tests.

If you want to contribute and need an environment more suited for development, you can use the settings.py file to alter default settings. For example, to enable the django-debug-toolbar:

MIDDLEWARE_CLASSES += (
    'debug_toolbar.middleware.DebugToolbarMiddleware',
)

INTERNAL_IPS = ('127.0.0.1',)

INSTALLED_APPS += (
    'debug_toolbar',
)

DEBUG_TOOLBAR_CONFIG = {
    'INTERCEPT_REDIRECTS': False,
    'HIDE_DJANGO_SQL': False,
}

When running django-admin.py updatefeeds on your development machine, make sure you have DEBUG = True in your settings to avoid making PubSubHubbub subscription requests without any valid callback URL.

feedhq's People

Contributors

brutasse avatar

Watchers

Mathieu Agopian avatar James Cloos 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.