Skip to content

benwoody/easychair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyChair - A Sinatra Template for use with CouchDB

This is a template loosely based off of ZapNaps Sinatra-Template at: github.com/zapnap/sinatra-template.

This has been tested using Ruby 1.9.3 and Couchrest_Model 1.1.2

Setting Up

Be sure to check through the Gemfile. I have commented out things that you may think extranious, but I use them, so they’re there.

General setup is done in environment.rb Here, you can change the Sinatra port, and CouchDB database name and port.

application.rb is where all the fun, Sinatra controller verbage lives.

Throw your Couch models in the model dir.

Place your haml in views and sass in public.

Helpers go in the helpers dir. Make sure the files are named *_helper.rb

Testing

Add your specs in spec. user_spec.rb is a sample spec ready to roll. If you create more, be sure to add

require "#{File.dirname(__FILE__)}/spec_helper"

to the top of the new spec.

To run, you can either run them manually with:

rspec spec/

Getting Started

bundle install
ruby application.rb

© 2012 Ben Woodall. This code is distributed under the MIT license.

About

A simple Sinatra and CouchDB Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published