Web App Template.
- Ruby 1.8.7+
- Sinatra 1.3+
- Haml
- sass(scss)
- jQuery
- MongoDB2.0+ / Mongoid2.4.x
% git clone git://github.com/shokai/sinatra-template.git
% cd sinatra-template
% git branch -a
% git checkout -b mongoid remotes/origin/mongoid
% gem install bundler foreman
% bundle install --path vendor/bundle
% cp sample.config.yml config.yml
edit it.
% foreman start
=> http://localhost:5000
use Passenger with "config.ru"
% ruby -Ku bin/console.rb
> Omikuji.find_by_result(/吉/).count ## => 24