Example application to demo the Alondra framework
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Alondra Example Application

This is an example application of the alondra gem.

Some interesting files in the app are:

  • app/views/chat_rooms/show.html.erb Using the JavaScript API to subscribe to a client and render updates.
  • app/controllers/messages_controller.rb Sending push message from controller.
  • app/models/presence.rb Pushing changes in presences to a channel.
  • app/listener/chat_listener.rb Example listener to count which users are in a chat room.
  • test/functional/chat_rooms_test.rb Example test showing how to test multiple browsers with Capybara.
  • config/initializers/alondra_server.rb For how to run the alondra server automatically in develpment.