api useds:
- Facebook Events Search: "https://graph.facebook.com/search?type=event&q=QUERY&..."
- Google Maps: "https://maps.googleapis.com/maps/api/geocode/json?address=QUERY&sensor=false"
& co..
create a mysql database:
mysql -u root -e "CREATE DATABASE IF NOT EXISTS eventyd_development;"
if you need, edit config/env.rb if you have different mysql user/pass than root//(nopass)
run migrations:
ruby -e 'DataMapper.auto_migrate!' -r ./config/env
bundle then
rackup
to get datas run:
ruby lib/get.rb
create a mysql database for test env:
mysql -u root -e "CREATE DATABASE IF NOT EXISTS eventyd_test;"
run specs:
rspec
fb api event: https://developers.facebook.com/docs/reference/api/event/
api explorer: https://developers.facebook.com/tools/explorer/333539793359620/?method=GET&path=1218562195
google maps http://maps.google.com/maps?q=43.763130187988,11.28843688964
geolocation api http://dev.w3.org/geo/api/spec-source.html https://developers.google.com/maps/documentation/geocoding/
http://open.mapquestapi.com/nominatim/ http://open.mapquestapi.com/nominatim/v1/search?format=json&json_callback=renderBasicSearchNarrative&q=firenze