Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Generator to create a web application stack composed of Sinatra, MongoDB, Effigy, and Hoptoad.

tag: v0.1.3

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 groove.gemspec
Octocat-spinner-32 install.rb
README.md

Groove

Generator to create a Sinatra, MongoDB, Effigy, and Hoptoad web app.

Usage

groove weekapaug

create  weekapaug/.gems
create  weekapaug/config.ru
create  weekapaug/app.rb
create  weekapaug/templates/index.html
create  weekapaug/views/index.rb

cd weekapaug

cat app.rb

get '/' do
  effigy :index
end

cat templates/index.html

<!DOCTYPE html>
<html>
  <head>
    <title>weekapaug</title>
  </head>
  <body>
    <h1>weekapaug</h1>
  </body>
</html>

vim views/index.rb

class IndexView < Effigy::View
  def transform
    text('h1', DB['grooves'].find(:name => 'weekapaug'))
  end
end

Designed for Heroku and MongoHQ

heroku config

DATABASE          => mongodatabasename
DATABASE_URL      => amazon.mongohq.com
DATABASE_USER     => user
DATABASE_PASSWORD => password
HOPTOAD           => apikey123
Something went wrong with that request. Please try again.