Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (21 sloc) 1.22 kb
390cd396 »
2009-01-23 initial import
1 = Sinatra Application Template
2
3 A base Sinatra application template. Just fork and build. Yay!
c291ca33 »
2010-11-24 update to use bundler and rspec2
4 Includes Bundler, DataMapper, RSpec2, and Haml, all ready to go.
390cd396 »
2009-01-23 initial import
5
c3f9a603 »
2010-11-24 add note about 1.9.x
6 Works with both Ruby 1.8.7 and Ruby 1.9.2.
7
390cd396 »
2009-01-23 initial import
8 == Configuration
9
7c680025 »
2009-01-23 fix README formatting
10 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).
390cd396 »
2009-01-23 initial import
11
7c680025 »
2009-01-23 fix README formatting
12 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.
390cd396 »
2009-01-23 initial import
13
14 == Testing
15
7c680025 »
2009-01-23 fix README formatting
16 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:
390cd396 »
2009-01-23 initial import
17
7c680025 »
2009-01-23 fix README formatting
18 rake spec
390cd396 »
2009-01-23 initial import
19
20 == Getting Started
21
c291ca33 »
2010-11-24 update to use bundler and rspec2
22 bundle install
7c680025 »
2009-01-23 fix README formatting
23 rake db:migrate
4187a4a0 »
2009-01-25 update instructions
24 ruby application.rb
b74f4aba »
2010-11-24 give thanks
25
26 == Thanks
27
28 This project includes contributions from the following developers:
29
30 * garrensmith
31 * bryanwoods
32 * flexd
8dd4e6ac »
2011-02-02 update contributors
33 * mcollina
b74f4aba »
2010-11-24 give thanks
34
8dd4e6ac »
2011-02-02 update contributors
35 (c) 2011 Nick Plante. This code is distributed under the MIT license.
Something went wrong with that request. Please try again.