Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Skeleton for Web UI experiments

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 javascripts
Octocat-spinner-32 stylesheets Initial version. March 11, 2012
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .project
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 app.rb


This is a skeleton for Web UI experiments. It uses Sinatra to compile CoffeeScript and SCSS on the fly.


  1. Get Ruby, Rubygems, and bundler. sudo apt-get install ruby-full sudo gem update --system sudo gem install bundler

  2. Install all the required gems. bundle install

  3. Start up the web server. bundle exec shotgun nohup bundle exec unicorn > web.log &

  4. Go to http://localhost:9393 and play.


CoffeeScript files go in the javascripts/ directory and are automatically merged into one big file, so you don't need to worry about exporting your classes.

SCSS files go into the stylesheets/ directory, and must be @imported in stylesheets/application.scss. CSS is sensitive to the order of the rules, so you're in control of that.

The main page is in views/welcome.erb. The server-side code is in app.rb.

Something went wrong with that request. Please try again.