Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

example rails application using the groopbuyr gem

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
README.rdoc

Example Site using Groopbuyr Gem

This is an example rails application that uses the Groopbuyr Gem. The application provides rake tasks to pull new/updated deals from Groopbuy.com and pull the cities that Groopbuy.com has deals for.

This rails applications allows you to determine if you are interested in seeing deals or not interested and uses this information to train the app to determine if new deals would be interesting to you or not. The way I was using it was to identify health related deals.

This was built to be internal application that is called by other web apps to pull in deals to enhance page content through API calls.

Getting Started

  1. download and extract

  2. Setup database.yml, app_config.yml and gmaps_api_key.yml by using the “.sample” files provided in config/

  3. rake db:setup

  4. rake cities:fetch

  5. rake deals:fetch

  6. start the web server: script/server (run with –help for options)

  7. Go to localhost:3000/

  8. Mark deals that you are interested in.

  9. After future runs of rake deals:fetch, then run rake deals:relevance.

Gems Used

  • will_paginate

  • geokit

  • chronic

  • classifier

  • groopbuyr

Rake Tasks for App

  • rake cities:fetch

  • rake deals:fetch

  • rake deals:relevance

Configure Email settings for Relevance Report email

  1. Copy config/app_config.yml.sample to config/app_config.yml

  2. Open config/app_config.yml

  3. Then modify report_recipient, report_sender, smtp_settings and domain for each environment as necessary.

API calls for Application

License

Released under the MIT license.

Contact

My name is Dave Elkins. You contact me at dave@elkinsware.com or check out my web site at daveelkins.com/.

Something went wrong with that request. Please try again.