Cherrypicker experiment in bacn intercepting
Перейти к файлу
Simon Wex 0111c982e6 Adding notification types for a few different services. 2011-08-08 16:51:51 -07:00
apps Added Meta SC black for that mozilla look 2011-08-04 11:34:49 -07:00
notes Adding notification types for a few different services. 2011-08-08 16:51:51 -07:00
.gitignore add gitignore file and ignore the fixtures 2011-07-05 15:31:26 -07:00
README.md use correct mark down for the heading and code blocks 2011-07-21 14:48:45 -07:00

README.md

Cherrypicker - A user-interface experiment in bacn intercepting.

Getting Installed (OS X)

Make sure you are setup to develop Rails Applications

sudo gem update --system
sudo gem install rails
sudo gem update rake
sudo gem update sqlite3-ruby

Have MySQL installed

brew install mysql

Bundle install the sift.mozillalabs.com app

cd apps/sift.mozillalabs.com/
bundle install

Bundle install the mail_processor app

cd apps/mail_processor/
bundle install

Getting Setup

MySQL will need to be initialized, see brew info mysql for instructions to setup databases to run AS YOUR USER ACCOUNT

Once initialized run the MySQL server.

mysql.server start

Configure Sift Server

cd apps/sift.mozillalabs.com/config/
cp database.yml.sample database.yml

Initialize Sift database

Create the database tables. This will error if MySQL is not running

cd apps/sift.mozillalabs.com/
bundle exec rake db:create

Load the schema to the development database.

cd apps/sift.mozillalabs.com/
bundle exec rake db:schema:load

Configure Mail Processor

Edit the mail_fetcher.yml file username and folder entry to match your email server

cd apps/mail_processor/config
cp mail_fetcher.yml.sample mail_fetcher.yml
open mail_fetcher.yml

Download Fixtures from your email server

cd apps/mail_processor
ruby bin/pluck_gmail_bacns.rb

Processing Fixtures

cd apps/sift.mozillalabs.com/
for f in `ls ../mail_processor/fixtures/`; do ./script/process_mail.rb ../mail_processor/fixtures/$f; done

Getting Running

cd apps/sift.mozillalabs.com/
./script/rails server