This is a rails app to map supporters in a state/district. The app is heavily integrated with Facebook, which enables the ability to
- have users share their support of a candidate or issue directly to Facebook
- have users encourage their friends to support the candidate or issue
- save the user's Facebook connections that are within the area/district. This allows the information to be used for targeting near election day, for example with a follow-up email asking them to reach out to specific friends.
Create a application.yml
file and customize the variables that will be used in the app.
Create an app at https://developers.facebook.com/.
FACEBOOK_APP_ID: "XXXX"
FACEBOOK_SECRET: "XXXX"
Customize to match the campaign.
CAMPAIGN_NAME: "John Doe"
CAMPAIGN_TYPE: "state" # congress, state, senate
CAMPAIGN_CONGRESSIONAL_DISTRICT: "" # e.g. "10". Leave blank if this isn't a congressional race. Use a string instead of a number
CAMPAIGN_STATE_FULL: "Virginia"
CAMPAIGN_STATE_ABBR: "VA"
Customize to the text you want displayed when a user first visits.
INTRO_HTML: "<p>Add your name velit massa placerat tortor ut aenean cursus nec, magna eu ac.</p>"
Customize what will be shown when someone shares their support on Facebook.
FB_LINK_NAME: "I just made an endorsement"
FB_LINK_URL: "http://www.example.com"
FB_LINK_CAPTION: "I'm a sample caption"
FB_LINK_DESCRIPTION: "I'm the link description"
FB_LINK_PICTURE_URL: "http://www.example.com/sampleurl.png"
To view signups, visit /admin
where ActiveAdmin is mounted. The default login info for ActiveAdmin is admin@example.com
and password
.
bundle install
thin start
git clone git@github.com:tylerpearson/support-map.git
cd support-map
heroku create myapp
git push heroku master