Skip to content

TheNotary/eff_fab

Repository files navigation

EFF Fab

This is a rails app built to make it easy for organizations with many users keep track of what they themselves are doing and what things their coworkers are up to.

Getting Started

Note: These instructions assume you have experience deploying conventional rails apps.

Install dependencies, or use my vagrant box.

$  sudo apt-get install mysql-server libmysqlclient-dev imagemagic

If you want to run the unit tests you need to install PhantomJS directly from this link: http://phantomjs.org/download.html

Setup the app as with most rails apps

$  cp config/application.yml.example config/application.yml
$  bundle install
$  rake db:create
$  rake db:migrate
$  rake user:populate_users

Now you can boot up the server

$  rails s

You'll want to notice the configuration file located at config/application.yml, an admin will have been generated with the supplied credentials, and also the secret_key_base will need to be recalculated via rake secret and insertered for the app to work.

Setup

Populate Database Records

To prime up the database with a basic admin user, run rake db:seed. To populate the app for EFF usage, login as the admin user (see application.yml for credentials) and navigate to /admin and click the button for Populate Users, this will scrape https://www.eff.org/about/staff for user names, emails, and pictures and plug them into the database. It takes a while...

Setup Reminder Mailings

Reminders and report_on_aftermath notifications are sent over email via rake mail:send_reminder and rake mail:send_report_on_aftermath respectively. It's clever to have these commands executed via cron. An example crontab follows:

0 12 * * 5 bash -l -c "cd /www/fab.int.eff.org/ && rake mail:send_reminder

0 12 * * 1 bash -l -c "cd /www/fab.int.eff.org/ && rake mail:send_reminder
0 15 * * 1 bash -l -c "cd /www/fab.int.eff.org/ && rake mail:send_reminder
15 15 * * 1 bash -l -c "cd /www/fab.int.eff.org/ && rake mail:send_last_minute_reminder

0 16 * * 1 bash -l -c "cd /www/fab.int.eff.org/ && rake mail:send_report_on_aftermath
Customize the images

Drop in more images into app/assets/images/banner_pool to have them show up in that beautiful top banner. If one image doesn't seem to work, it probably has a + sign or possibly something even more adventurous like a question mark, so try taking that out.

License

GNU Affero General Public License http://www.gnu.org/licenses/agpl-3.0.en.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published