tsaleh / bushido

instant rails app

This URL has Read+Write access

tsaleh (author)
Thu Nov 05 13:34:36 -0800 2009
commit  3fa5078e0f52ebfbdb39f6938c3c534adf86a0ed
tree    d408f97e92f7e064bb7d86a900b56f179935227d
parent  2345d849ee061ec8e1852149420453429df03dcc
name age message
file .gitignore Wed Oct 14 18:02:59 -0700 2009 moved files over [tsaleh]
file README.textile Tue Oct 27 15:44:18 -0700 2009 Documentation [tsaleh]
directory assets/ Loading commit data...
file diff.sh Thu Oct 22 17:41:34 -0700 2009 Now using heroku env vars for secret stuff [tsaleh]
directory gold/
file run.sh Tue Oct 27 15:42:30 -0700 2009 Added command line arguments [tsaleh]
file template.rb
README.textile

Bushido

This is the template I use on my new applications. It’s very specifically geared for the tools I use, and includes some of my coding idioms. The gold directory is a great example of what an app created with this template will end up looking like.

This template includes:

Full user system

  • Authentication via Authlogic,
  • Streamlined user registration initially requiring just email address
  • User confirmation/activation

Configured for Heroku

Including .gems manifest and automatic app creation.

This template will create a new, free, heroku app automatically. BEWARE

User avatars in Amazon S3 via Paperclip

Blueprint based default style

Plugins & Gems:

To use:

It’s a good idea to have some info handy, including:

  • The hoptoad key for the new project
  • A gmail email address and password for configuring outgoing email
  • The S3 key and secret for paperclip avatars

Once you’ve got that, run:

rails myapp -m http://github.com/tsaleh/bushido/raw/master/template.rb

You can also supply the configuration values on the commandline:

rails myapp -m http://github.com/tsaleh/bushido/raw/master/template.rb -- --s3_key=foo

Note the extra ‘—’ in there, which must come before the rest of the options. The supported options are:

  • —hoptoad_key
  • —gmail_username
  • —gmail_password
  • —s3_key
  • —s3_secret

AGAIN: This template will create a new, free, heroku app automatically.

Todo:

  • User password resets
  • Something to deal with url slugs (such as http://github.com/norman/friendly_id/)
  • less