Skip to content

sameersemna/BernieBNB

 
 

Repository files navigation

Bernie BNB

Goal

We want to build an app to allow supporters to share their homes with others from out of town and to help supporters on the road find lodging.

How We're Doing It

  • Rails 4.2.5
  • Devise/ Omniauth for authentication with Facebook and google
  • Geocoder gem to search by zipcode, using Bing geocoding API.

Contributing

We have a channel on slack. Please e-mail buddhistsforbernie@gmail.com for an invite. We would love your help.

Steps

  1. Set up Facebook Developer account at https://developers.facebook.com then get your FACEBOOK_KEY and FACEBOOK_SECRET.
  2. Set up Google Developer account at https://developers.google.com/ and get your GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
  3. Create Bing Maps key (BING_GEOCODE_ID) at https://msdn.microsoft.com/en-us/library/ff428642.aspx
  4. Based on figaro gem, create a config/application.yml file and set values.

USERNAME: TBD - Used in config/database.yml file.

PASSWORD: TBD - Used in config/database.yml file.

IP: http://localhost:3000/

FACEBOOK_KEY: "TBD" - Used in config/initializers/omniauth.rb file.

FACEBOOK_SECRET: TBD - Used in config/initializers/omniauth.rb file.

GOOGLE_CLIENT_ID: "TBD" - Used in config/initializers/omniauth.rb file.

GOOGLE_CLIENT_SECRET: TBD - Used in config/initializers/omniauth.rb file.

BING_GEOCODE_ID: TBD - Used in config/initializers/geocoder.rb file.

  1. To set up development environment, do the following: * Fork the repo at https://github.com/SandersForPresident/BernieBNB * Cloned it locally. * Do above steps 1-3. * Run "rake db:create". * Run "rake db:migrate". * Run "rake db:setup". * Run "rake" to run the tests. * Run "git remote add upstream https://github.com/SandersForPresident/BernieBNB.git" so you can keep in sync with original project by running "git pull upstream master".

About

Home sharing app for Bernie Sanders supporters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 72.2%
  • HTML 14.5%
  • CSS 6.3%
  • JavaScript 6.2%
  • CoffeeScript 0.8%