Skip to content

nazwhale/pusher-realtime-chat-widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 

Repository files navigation

Realtime Chat Widget

A Realtime Chat Widget with a Ruby backend, made with the help of this tutorial from Pusher.

Installation

First, clone the repo and navigate to the correct directory:

$ git clone git@github.com:nazwhale/pusher-realtime-chat-widget.git
$ cd pusher-realtime-chat-widget/src/ruby-sinatra

Install the relevant dependencies with Bundler:

$ gem install bundler     
$ bundle install

And run the program with the help of Sinatra:

$ ruby chat.rb

Use

Navigate to http://localhost:4567/ to see the side-by-side example or http://localhost:4567/chat.html to see the standalone example.

To send a Gif, simply type "Gif me a/some/an" followed by the name of the gif you would like to send.

The program will look up a gif from the Giphy API and insert it into the chat window.

Happy chatting!

Imgur

About

Playing with Pusher's realtime chat widget

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.8%
  • CSS 28.6%
  • JavaScript 3.0%
  • Ruby 1.1%
  • Makefile 0.5%