The central place to discover openFrameworks addons.
- Ruby 2.0.0 or greater
- Bundler
- PostgreSQL 9.x (recommend using homebrew or mac ports to install)
- Heroku Toolbelt
-
Clone the repository:
$ git clone https://github.com/atduskgreg/ofxaddons.com -
Change directories in to the cloned repository:
$ cd ofxaddons.com -
Install the gems dependencies
$ bundle install -
Set up the database.
NOTE: At the moment there's not a current copy of the database schema in the repository, so it would be tough to start from scratch.
Copy the production database to your local machine:
WARNING: the database ofxaddons must not exist locally before you do this!
`$ heroku login`
`$ heroku pg:pull HEROKU_POSTGRESQL_JADE ofxaddons`
-
Launch the server:
$ foreman startYou should now be able to navigate to load the web site at http://localhost:5000
If you want to avoid rate limiting (hint: you do) with the Github API then you need to register a new application and get some API keys.
API keys are strictly optional. If you don't use them, the app will run fine, but you'll be subject to rate limiting. After you make a few thousand requests Github will start rejecting your requests.
Once you've got your API keys, there are several ways to set up your environment, but here's one way using Foreman.
-
Create a
.envfile in the repository root$ touch .envWARNING: Never check in the
.envfile. It will screw up the production environment. -
Add your API key and secret to the file:
GITHUB_CLIENT_ID=xxxxxxxxxxxxxxxxxxxx GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
Restart Foreman
Further reading on using foreman for config vars.
Crawling and updating is all run through a series of rake tasks defined in Rakefile. To run the master task:
$ bundle exec rake cron