CS98SI Chirps Demo
==================

Installation
------------

- This demo requires Ruby and Sinatra.
- Download and install Ruby for your platform at http://www.ruby-lang.org/
- Download and install Sinatra by running `gem install sinatra`. You might need administrator privileges. Get more information at http://www.sinatrarb.com/
- Open a terminal, cd to the project folder, and run `ruby server.rb`
- Visit http://localhost:4567/
- Profit!

Pages
-----

- /ajax: The AJAX version.
- /noajax: The no-AJAX version.
- /new: New chirps are created by making a POST request to this page. Parameters are username and contents.
- /list: Gets a list of chirps in JSON. If an index parameter is specified, only fetches tweets after the given index.

Files
-----

- README.txt: This file.
- views/server.rb: Server-side logic for storing, creating and listing chirps.
- views/ajax.erb: HTML for no-AJAX version of the Chirps.
- views/noajax.erb: HTML for AJAX version of the Chirps. The AJAX JavaScript code goes here.
- public/jquery-1.9.1.min.js: The jQuery library.
