Skip to content

HTTPS clone URL

Subversion checkout URL

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