Home > yart

yart

Yart is a project mainly written in Ruby, it's free.

Yet Another Rails Template

YART is Yet Another Rails Template (and Builder)

A Rails builder by Marc Chung. To create a Rails project with this builder:

$ rails new rails_example --builder=http://github.com/mchung/yart/raw/master/recipes/fast_builder.rb --database=postgresql -T

What is Yart?

Yart encapsulates the body of Rails knowledge acquired from several hundred years of Rails development.

I like recipes, if I have to do something more than once, it's getting automated and going in a cookbook, like creating a Ruby on Rails stack.

Let's be honest, getting started with Rails 3 is complicated. Not hard, or non-trivial, but complicated. Where Rails' predecessors praised conventions, Rails 3 gives you choices. And with those choices come hard decisions which you don't need to be making.

So who are you?

There's a good chance you're here because someone told you about my collection of Rails 3 builder recipes. You want to get up and running in Rails in as little time as possible. There's a learning curve here, so you're also willing to read code.

YART, or Yet Another Rails Template started out as a single Rails template intended on creating a default stack for development and production. Since it's release, I've moved it over to Rails 3, adopted Bundler, and have decided to grow my collection.

What does Yart do?

  1. Uses Bundler to manage your dependencies
  2. Uses database sessions
  3. Uses Heroku for hosting your application
  4. Vendors the following gems
    • simple_form - for forms
    • will_paginate - for pagination
  5. Vendors the following gems for testing
    • factory_girl - for replacing fixtures
    • rspec - for BDD and mocking
    • cucumber and cucumber_rails/pickle - for happy customers
    • email_spec - for testing emails
  6. Uses PostgreSQL (Heroku friendly out of the box)

Thanks goes to...

  • Rails Templates
  • How to setup RSpec, Cucumber, Webrat, Rcov, and autotest
  • jeremymcanally/rails-templates
  • Rails 3 Application Builders
  • Rails::Generators::AppGenerator

The Recipes

yart_builder was the very first recipe. It ships with the following gems:

  1. formtastic, for creating and styling forms easily.
  2. will_paginate, for pagination large collections of data.

fast_builder is aimed at getting your Rails environment up and running with oauth (for authentication with Twitter or Facebook) and Heroku (for hosting your new Ruby application). It ships with the following gems:

  1. omnisocial, for oauth with Twitter and Facebook.
  2. heroku, for hosting your app on Heroku.

TODO ==== What's in the future? Ideally yart could make your life easier by turning into a Rubygem which you could run from the command line. Until then, you'll have to create recipes manually.