RealMassive-Archive / prospector

how we prospect, mine, and refine CRE nuggets and turn them into listings
0 stars 0 forks source link

Status

This application was originally developed around a concept for Real Massive that no longer exists; ergo, much of this codebase is invalid and based on previous concepts. Several pivots have happened since it was started and this code has been through several maintainers. Tests will no longer function, and since the application is needed in a hurry and for a limited time to process a large batch of data, those tests were removed (they'd never work right anyway).

Dependencies

You can install most of the dependencies you'll need with homebrew on OS X. If you don't have it, get it. It makes things SO much easier.

Setup

Web Hook

NOTE: You need an account on Postmark.

NOTE: You need some way for Postmark to POST to your server (localhost). ForwardHQ is the easiest way to do this, but costs a little money ($5/mo). Localtunnel is an option, but gives you a different URL each time you launch it, which means you need to update your Postmark inbound URL every time you bounce.

Additional option: ngrok. http://ngrok.com

Running

Resque

The application uses Resque to parse emails received from the Postmark web hook. Make sure redis is up and running then run QUEUE=* bundle exec rake resque:work. The application has an authenticated /resque endpoint that you can use to see what resque workers have been up to.