Skip to content
Base Sinatra template with support for active_record and mongoid
Ruby Other
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
db
lib
public
script
spec
views
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
app.rb
config.ru

README.md

Sinatra Template

My base Sinatra template, with support for ActiveRecord. For Mongoid support checkout the corresponding branch.

  • Clone the repository
  • Rename 'config/config.yml.example' & edit config as needed.
  • bundle
  • Create databases
  • rake db:migrate
  • script/server to start the development server.
  • script/console to start console
  • RACK_ENV=test rake db:migrate spec to run tests

Feel free to fork it, clone it or otherwise modify it for your own use.

Includes a basic authentication system.

Setup with:

  • ActiveRecord or Mongoid
  • HAML
  • Twitter Bootstrap

Requirements:

  • Ruby (>= 1.9.2)
  • Any ActiveRecord supported db or MongoDB
  • Bundler
Something went wrong with that request. Please try again.