Giter Site home page Giter Site logo

sinatra-pusher-example's Introduction

Sinatra Pusher Example

This is an extremely simple application to demonstrate just how easy it is to integrate Pusher into your Ruby web applications.

Installation

Ensure you set your Pusher credentials in sinatra-pusher.rb and views/layout.erb.

bundle install
bundle exec thin start

Now open two browsers at localhost:3000. Type your messages and watch them appear realtime.

Why?

  • Why is this example so simple?
  • Why does your design suck?
  • Where is the rest of the code?
  • You suck!

This app is purposely simple. It's supposed to provide a developer with a working example of a realtime chat application with no overhead. Messages do not persist between requests because there are no storage mechanisms. It's up to the user to scale the most simple solution to match their needs.

sinatra-pusher-example's People

Stargazers

Audric IW1GEU avatar Kent Gruber avatar Aaron Wolfson avatar Nick Luparev avatar Angus H. avatar Sebastian Kessler avatar Sam Xiao avatar raecoo avatar  avatar Josh Kaufman avatar Nicolás Garnil avatar  avatar Ivan Kotelnikov avatar robbin han avatar  avatar Don Hill avatar Martin Tithonium avatar Sander Heilbron avatar Konstantin Haase avatar mech avatar Ferenc Fekete avatar

Watchers

Lee Jarvis avatar James Cloos avatar  avatar

Forkers

crekev musajoemo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.