JSON120a3 is a project mainly written in RUBY and JAVASCRIPT, it's free.
just the json functionality, no homepage b/c cartographer not working on heroku
Heroku URL: http://comp120a3.heroku.com
NOTES: ~ unable to add all stations to map at this time. using cartographer. looking into it. ~ comp120a3.heroku.com is not displaying the mapper/index content, but rather an error. THIS IS RELATED TO CARTOGRAPHER. not sure what to do
TO REPLICATE:
configure the config/database.yml file to correspond with your db!
Station model: rails generate model Station line:string platform_key:string platform_name:string station_name:string platform_order:integer startofline:boolean endofline:boolean branch:string direction:string stop_id:string stop_code:string stop_name:string stop_desc:string stop_lat:decimal stop_lng:decimal
Mapper controller: rails generate controller Mapper station find_closest_stations station_schedule index
Cartographer: run: rails plugin install git://github.com/joshuamiller/cartographer.git add as first line to config/environment.rb: CARTOGRAPHER_GMAP_VERSION = 3
added to Gemfile: (make sure correct db gem is there also) gem 'json' gem 'geokit-rails3'
update all app/ files from TUFTS CS folder update the config/routes.rb file move mbta image to public/images/
REMOVE public/index.html
Create GIT repo & git init a local, and push
HEROKU (AFTER setting up git & populating db):