Sha256: edd074e53994d6dfeb01a2d29e21415e62021aabe56264f3a395db3c82bf4e45

Contents?: true

Size: 1.19 KB

Versions: 18

Compression:

Stored size: 1.19 KB

Contents

= Sinatra Application Template

A base Sinatra application template. Just fork and build. Yay!
Includes Bundler, DataMapper, RSpec2, and Haml, all ready to go.

Works with both Ruby 1.8.7 and Ruby 1.9.2.

== Configuration

Dependencies and all configuration is done in <tt>environment.rb</tt>. Your database is also set up here. DataMapper will use sqlite3 by default. Tests use the sqlite3-memory adapter (no configuration needed).

Add your controller actions in <tt>application.rb</tt>. Views for these actions are placed in the <tt>views</tt> directory. Static files, including a stock stylesheet, go in the <tt>public</tt> directory. Models go in the <tt>lib</tt> directory and are auto-loaded. 

== Testing

Add your specs in <tt>spec</tt>; just require <tt>spec_helper.rb</tt> to pre-configure the test environment. A number of samples are provided (including a sample model, which can be removed). To run the specs:

  rake spec

== Getting Started

  bundle install
  rake db:migrate
  ruby application.rb

== Thanks

This project includes contributions from the following developers:

  * garrensmith
  * bryanwoods
  * flexd
  * mcollina

(c) 2011 Nick Plante. This code is distributed under the MIT license.

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
codesake-dawn-0.85 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.85 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.80.0 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.80.0 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.79.99 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.79.99 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.77 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.77 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.75 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.75 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.72 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.72 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.70 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.70 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.60 spec/support/sinatra-safe/README.rdoc
codesake-dawn-0.60 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.50 spec/support/sinatra-vulnerable/README.rdoc
codesake-dawn-0.50 spec/support/sinatra-safe/README.rdoc