Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A mini chat app written with Sinatra
CSS Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app update example
config restructure files
public Updating gem source to secure rubygems uri
spec lots of cleanup
utils Updating gem source to secure rubygems uri
.gitignore added a lot
Gemfile Updating gem source to secure rubygems uri
Gemfile.lock all is working again
Procfile added some more heroku stuff Updated Readme
Rakefile adding first test
app.rb clean up added IronCache


Build Status Code Climate

Chattyloo is an asynchronous chat app written in Sinatra and persisted with Postgres or SQLite using Datamapper. There is no authentication scheme. Users arrive at the index and are redirected to a chat room with a unique URL that can be shared for others to join the room.

It makes use of Server-Sent Events (SSEs) instead of WebSockets for simplicity and because HTTP is awesome.

Besides the fact that it's very simple, the app does have a few bells and whistles. Firstly, different sounds play when chat messages are sent and received. Hearts and :)'s are automatically rotated using CSS3 transforms. Lastly, the title element displays a status message when new messages are received.


First clone the repository:

git clone

Run the bundle command at the root of the project:

cd chattyloo/

Then you should be able to start the server:


Then just go to localhost:4567, and start chatting!

Deploying to Heroku

You can deploy your own chattyloo app! Here are the instructions for deploying to Heroku.

First in the root creat a new heroku app:

heroku apps:create mychatapp

Then add the addon for the shared database, this will create a Postgres database with all the proper environment variables needed to connect to it.

heroku addons:add shared-database

Now deploy the app to the server and go check it out

git push heroku master
Something went wrong with that request. Please try again.