Awesome
Sample Sinatra App with ActiveRecord
A naked sinatra app, which supports ActiveRecord out of the box.
Features
- console (
rake console
) - auto reload in development using Sinatra::Reloader
- Shoulda-enabled Rspec spec helper
- basic rackup config file
Getting started
- clone the repository
- Install dependencies (
bundle
) - create migrations manually or generate using
rake db:create_migration NAME=create_foos
- migrate (
rake db:migrate
) - create models in app/models
- Profit!
(For details, consult sinatra-activerecord gem)