Skip to content
Pinball Map
Ruby HTML JavaScript CSS
Find file
Failed to load latest commit information.
app removed google analytics and edited home page text Apr 27, 2016
autotest
bin
config
db
doc sometimes, a commit happens Oct 20, 2010
lib
public
script initial cucumber install Oct 28, 2010
spec look for https in location description submissions Mar 17, 2016
.gitignore
.rubocop.yml
.rvmrc
.travis.yml
Capfile
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile disable Style/Next cop in report_empty_locations, it has a bug Oct 2, 2014
config.ru

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.