AnnotationNation_!_ is a demonstration application built by FortiusOne at our 2010 developer retreat. It is an example of realtime visualization and collaboration.
You’ve found this README, so you probably already have the code. In case you don’t, you can get it from the Github repository:
git clone [email protected]:fortiusone/annotation_nation.git- EventMachine
- RabbitMQ
- Thin (web server)
- Sinatra
- GeoIQ
- DataMapper
Add RubyGems to your gem sources if you don’t have it:
gem sources -a http://rubyserver.orgThen install the following gems:
sudo gem install em-websocket uuid amqp thin dm-core dm-migrations- git clone [email protected]:fortiusone/geoiq-ruby.git
- cd geoiq-ruby
- bundle install
- sudo rake install
RabbitMQ is used as the message queue. You will have to install it. Follow the directions at http://www.rabbitmq.com/server.html
The following are three (3) seperate servers to startup
~/rabbitmq $ sudo scripts/rabbitmq-serverStart the dataserver and include the GeoIQ dataset id, the update rate in seconds, and the name of the timestamp attribute.
~/annotation_nation $ ruby dataserver.rb 1 5 time_attribute ~/annotation_nation $ ruby sinatra/annote/annote.rb http://geoiq.localFinally, visit http://localhost:3000/article/MAP_ID