Giter Site home page Giter Site logo

mogo's Introduction

Mogo: A Planet-Style Feed Aggregator

Mogo combines multiple news feeds (or feed topic searches) into a single web page view, much like a typical “Planet”-style feed aggregator. It’s built in Ruby on top of Sinatra and DataMapper.

Configuration

Dependencies and all configuration is done in environment.rb. Your database is also set up here. DataMapper will use sqlite3 by default. Tests use the sqlite3-memory adapter (no configuration needed).

Getting Started

rake db:migrate
rake feeds:add URL=http://blog.zerosum.org
rake feeds:update
ruby application.rb

Adding Feeds

Use the web interface located at /admin to add and remove feeds. Accessing this URL will require a username and password. These settings are adjustable in environment.rb; the defaults are ‘admin’ and ‘password’.

You can also add feeds directly from the command line:

rake feeds:add URL=http://blog.zerosum.org

Status Updates

Run rake feeds:update to update the cached feeds. You can schedule this as a cron job to fire every few minutes if you like.

Searching

We use Sphinx for full-text indexing and search. Therefore, you’ll need to have it installed. You can find downloads and installation instructions at www.sphinxsearch.com.

To enable search in Mogo, set the option in environment.rb. Search is disabled by default. I’ve only tested search with MySQL, so set your database connection string to a MySQL database you’ll create (default: ‘mogo’ with user ‘root’). Feel free to tune the sample configuration provided in sphinx.conf to your taste. You probably won’t want to use a passwordless root user in a production environment ;-).

Once that’s done, go ahead and run the supplied Rake tasks to get up and running:

rake sphinx:reindex      # update the search indexes; you'll probably want to schedule this periodically
rake sphinx:search:start # start it up
rake sphinx:search:stop  # shut it down

You should now be able to run application.rb and use the rudimentary search interface.

mogo's People

Contributors

zapnap avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.