Skip to content
Rails Engine which displays realtime events on Google map.
Ruby CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
lib
script
spec
.gitignore
.rspec
.rvmrc
.travis.yml
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
event_world.gemspec

README.md

EventWorld Build Status

EventWorld is a Rails Engine which displays realtime events on Google map (using V3).

Installation

Add EventWorld to your Rails 3.2.x application.

gem 'event_world', git: 'git://github.com/lukkry/event_world.git'

Update your bundle.

$ bundle install

Copy faye.ru file to your application using generator.

$ bundle exec rails g event_world:install

Run faye server.

$ rackup faye.ru -s thin -E production

Using the gem

Mount engine to whatever path you choose.

mount EventWorld::Engine => "/events"

Notify EventWorld about new events by initializing EventWorld::Event object and call publish method on it.

event = EventWorld::Event.new({ longitude: -21.868286, latitude: 64.130263, body: "text" })
event.publish

Enjoy realtime events on Google map.

Example

An example Rails 3.2 application: event_world_example

Contributing

EventWorld is an open source project and I encourage contributions ;)

References

Google Maps Javascript API V3 Reference

License

MIT-LICENSE

Something went wrong with that request. Please try again.