Skip to content
Pinball Map
Ruby HTML JavaScript CSS
Latest commit 553c64d Jun 15, 2016 @scottwainstock committed on GitHub Merge pull request #479 from RyanTG/master
updated the privacy policy and added a faq
Failed to load latest commit information.
app updated privacy policy and faq Jun 13, 2016
autotest backed up to make all the tests pass Dec 16, 2010
bin heroku rails4 compatibility Aug 9, 2014
config updated the privacy policy and added a faq Jun 13, 2016
db add db indexes Nov 1, 2015
doc sometimes, a commit happens Oct 20, 2010
lib only send one weekly all region summary emails to each super admin Apr 2, 2016
public
script initial cucumber install Oct 28, 2010
spec sort location by name in search dropdown May 28, 2016
.gitignore add simplecov and coveralls support Aug 10, 2014
.rubocop.yml fix rubocop style issues Nov 4, 2015
.rvmrc upgrade to ruby 2.1.2. Jul 12, 2014
.travis.yml change default travis test to bundle exec rake Sep 6, 2014
Capfile rubocop compliance Sep 6, 2014
Gemfile rubocop compliance Sep 7, 2014
Gemfile.lock upgrade rails_admin gem Nov 5, 2014
Procfile switch to puma Feb 24, 2013
README.md coveralls badge Aug 10, 2014
Rakefile disable Style/Next cop in report_empty_locations, it has a bug Oct 2, 2014
config.ru README: Added Mac setup instructions Dec 19, 2013

README.md

Build Status Coverage Status

sweet pinballin' brah

API Documentation

Available here: http://pinballmap.com/api/v1/docs

Mac Enviroment Setup

Below is a summary of the steps that Brian Hanifin undertook to get the site up and running on OS X 10.9. If you would like to contribute, and have any trouble, please ask.

  • Follow the Ruby install instructions at railsapps.github.io/installrubyonrails-mac.html. Make sure you also download ruby-1.9.3.
  • cd /Projects-Path/
  • git clone https://github.com/scottwainstock/pbm.git (I used the SourceTree app instead.)
  • cd /Projects-Path/pbm
  • rvm --default use ruby-1.9.3
  • bundle install
  • selenium install
  • brew update && brew install phantomjs
  • Create config/database.yml with the following:
development:
    adapter: postgresql
    encoding: utf8
    database: pbm_dev
    template: template0
    host: localhost

test: &test
    adapter: postgresql
    encoding: utf8
    database: pbm_test
    template: template0

production:
    adapter: postgresql
    encoding: utf8
    database: pbm
    username: root
    password:
    template: template0

cucumber:
    <<: *test
  • brew install postgresql
  • initdb /usr/local/var/postres -E utf8
  • Download Postgres App. (I have mine run at startup on my "Dev" profile.)
  • bundle exec rake db:create ; RAILS_ENV=test bundle exec rake db:create
  • bundle exec rake db:migrate ; RAILS_ENV=test bundle exec rake db:migrate
  • bundle exec rspec
  • rake doc:app (I think this generates documentation for the app, which sounds helpful for later.)
  • curl get.pow.cx | sh
  • cd ~/.pow
  • ln -s /Projects-Path/pbm
  • Edit config.ru: change run Pbm::Application to self.run Pbm::Application (Workaround: so Pow can run the site.)
  • open http://pbm.dev

If the site loads properly it will be an empty version of pinballmap.com, then ask Scott for a data dump so you can have a full set of data to work with.

Something went wrong with that request. Please try again.