Bort – A Base Rails Application

What is Bort?

Bort is a base rails application that takes the pain out of setting up new projects. A lot of people do the same things, with every project. Not very DRY is it? So we decided to build a base application that your can use to start your projects.

Where do I get Bort?

Your can get Bort from Github:

http://github.com/fudgestudios/bort/tree

Once you’ve downloaded the file, unzip it, change the settings in database.yml, run rake db:migrate and you’re ready to rock.

Features

So you’re probably wondering what you get from Bort? Well here goes…

RESTful Authentication

RESTful Authentication is already setup. The routes are setup, along with the mailers and observers. Forgotten password comes setup, so you don’t have to mess around setting it up with every project.

The AASM plugin comes pre-installed. RESTful Authentication is also setup to use user activation.

User Roles

Bort now comes with Role Requirement by Tim Harper. A default admin role is predefined along with a default admin user. See the migrations for the admin login details.

OpenID Integration

OpenID integration is now integrated with RESTful Authentication. Shazzam!

Will Paginate

We use will_paginate in pretty much every project we use, so Bort comes with it pre-installed.

Rspec & Rspec-rails

You should be testing your code, so Bort comes with Rspec and Rspec-rails already installed so you’re ready to roll.

Exception Notifier

You don’t want your applications to crash and burn so Exception Notifier is already installed to let you know when everything goes to shit.

Asset Packager

Packages up your css/javascript so you’re not sending 143 files down to the user at the same time. Reduces load times and saves you bandwidth.

Routes

The routes for RESful Auth and the forgot password stuff are already sorted for you.

Settings YAML

There is a settings.yml file that contains site-wide stuff. The site name, url and admin email are all used in the RESTful Auth mailers, so you don’t need to worry about editing them.

Database YAML

The database.yml defaults to sqlite3 but also contains the settings for MySQL in comments so you can switch over easily.

Capistrano Recipe

Bort comes ready to rock capistrano. The recipe that is setup is based on using git and passenger. Edit as you see fit.

Uses the Database for Sessions

Bort is setup to use the database to store sessions by default.

Misc
  • password and password_confirmation are set up to be filtered
  • there is a default application layout file
  • a page title helper has been added
  • index.html is already deleted
  • rails.png is already deleted
  • a few changes have been made to the default views
  • a default css file with blank selectors for common rails elements

Bort Suggestions?

If you have any suggestions for improvements, or bug fixes then please fork the project and let us know, or you could send us suggestions using User Voice.

POW!

Jim Neath is a 24 year old Ruby on Rails developer from Manchester, UK. Contact Jim Neath

    follow me on Twitter
    Recommend Me

    Categories

    Stalk Me