Giter Club home page Giter Club logo

petticoat_junction's Introduction

Petticoat Junction

Framework for periodically searching any web service.

Usage

Set up your db schema:

create_table “refreshes”, :force => true do |t| t.integer “term_id” t.string “story_type” t.datetime “queued_at” t.datetime “searched_at” t.datetime “created_at” t.datetime “updated_at” end create_table “stories”, :force => true do |t| t.integer “term_id” t.integer “content_id” t.string “content_type” t.datetime “created_at” t.datetime “updated_at” t.datetime “content_created_at” end add_index “stories”, [“content_created_at”], :name => “index_stories_on_content_created_at” create_table “terms”, :force => true do |t| t.string “text” t.datetime “created_at” t.datetime “updated_at” t.integer “latest_twitter_id” t.datetime “last_viewed_at” end add_index “terms”, [“last_viewed_at”], :name => “index_terms_on_last_viewed_at” add_index “terms”, [“last_viewed_at”], :name => “index_terms_on_last_viewed_at_and_last_searched_at”

Create these models:

class Term < ActiveRecord::Base

include PetticoatJunction::Term
end

class Story < ActiveRecord::Base
include PetticoatJunction::Story
end

class Refresh < ActiveRecord::Base
include PetticoatJunction::Refresh
end

Now, for any kind of content you need (Tweet, Article, Video, Photo, Audio):

class FooBar < ActiveRecord::Base

include PetticoatJunction::Content
end

Requirements

  • starling (sudo gem install starling-starling —source=http://gems.github.com)
  • metaid (sudo gem install metaid)

Plans for the future

  • Remove reliance on Starling so you can plug in other queuing systems like SQS

petticoat_junction's People

Contributors

tyler avatar

Stargazers

Angus H. avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

cider-load-test

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.