Make JS-heavy web apps with a lightweight REST interface to ActiveRecord
JavaScript Ruby Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
db/migrate
lib
server
spec
.autotest
.gitignore
.rspec
.rvmrc
.slugignore
Gemfile
Gemfile.lock
Guardfile
Procfile
README.md
Rakefile
config.ru
config.yml
console
unicorn.rb

README.md

Features Backbone.js, Twitter Bootstrap, Jasmine, Sprockets (CoffeeScript, SASS, and JST support), and more.

install

git clone https://github.com/6/sinatra-backbone-boilerplate.git your_app
cd your_app
git remote rm origin
git remote add upstream https://github.com/6/sinatra-backbone-boilerplate.git
bundle install

configure

Open up config.yml.

Generate a session secret by opening up irb and running the following:

require 'securerandom'
SecureRandom.hex(64)

Optionally set database_url for ActiveRecord support. See sinatra-activerecord for ActiveRecord-related rake tasks (migrations, etc).

run

rake start
rake guard
rake jasmine

Open http://localhost:5000 for the web app and http://localhost:8888 for Jasmine.

pulling in updates

git fetch upstream
git merge upstream/master