28 Sep 2008, 4:00pm

by Ariejan de Vroom

BaseApp: a quick start for your Rails App

For the impatient: http://github.com/ariejan/baseapp

Got issues? Feature requests or patches? http://baseapp.lighthouseapp.com/

Every Rails developer has at least once developed an application that needed user authentication and some basic UI features like tabs and a sidebar. Ask yourself now: “how often have you installed and extended the restful_authentication plugin?”.

Yes, I have done it quite a few times and everytime I find myself writing the same code over and over again. User login, password reset, ‘forgot password’ functionality. I’ve build the same basic UI over and over again. Added administrator users and roles.

Are you tired of doing the same old things over and over again? I was! So, I created BaseApp.

BaseApp is a Ruby on Rails application which contains a lot of code you want in your project by default. To give you an idea of what is does out of the box:

  • User Authentication including password recovery, account activation and account suspensio.
  • Admin interface where the admin user can easily manage users and tweak app settings
  • Default CSS-based UI with tabs and a sidebar. Very acceptable by default and easy to customise.

BaseApp is currently based on Rails 2.1.1. And although it’s a pretty complete package and ready to be used for your next project, it still needs a bit of work. Check out the README for features that should be in BaseApp.

Of course, BaseApp is open source so fork a copy at the GitHub and send me those patches (of pull requests)!

There are tons of feaures that can be included into BaseApp, so the next big thing is to include some sort of configuration that allows you to disable/enable certain BaseApp features.

So, go right ahead! Use it! Fork it! Send me those pull requests!

Please share the love of this post by bookmarking it, and sharing it with others. Thanks!

  • Digg
  • del.icio.us
  • description
  • Reddit
  • Technorati
  • BlinkList
  • E-mail this story to a friend!
  • Facebook
  • Live
  • MisterWong
  • Netvouz
  • NewsVine
  • Slashdot
  • SphereIt
29 Sep 2008, 9:32pm
by Iain Hecker


I’m having a look at it in getting it to Rails 2.2 including I18n. You’ll get a pull request soon ;)

29 Sep 2008, 9:37pm
by Ariejan de Vroom


@Iain: Oh, very nice! It’s quite high on my “think I want for BaseApp”-list. I’m looking forward to it!

30 Sep 2008, 8:50am
by Juan José Vidal Agustín


I’ve problems with rake db:migrate
How can I run your app?

30 Sep 2008, 9:03am
by Ariejan de Vroom


@Juan: I noticed some files were not in the repository. This has been fixed.

I’ve also opened up a lighthous project to post issues like these.

http://baseapp.lighthouseapp.com/

9 Oct 2008, 9:20am
by Chester


There seem to be quite a few problems with this. When I tried to signup I got an error.

Also, I don’t see the point in having a layout there already. It’s just something that people would remove every time they crate a new project.

Think I’ll stick with Bort for now.

9 Oct 2008, 9:29am
by Ariejan de Vroom


@Chester:

What error did you encounter? Did you post a bug report at LightHouse?

On the default layout issue, I think it’s good to have something in place by default. It’s much nicer to be able to show your client something styled after a weeks work than just bare HTML.

10 Oct 2008, 4:30am
by chris


Thanks … this is nice!
Just one question, what is db/bootstrap/*.yml files for, and
how do I use them ?
thanks again.

10 Oct 2008, 4:34am
by chris


never mind …
i used: rake db:bootstrap:load
ahhh … the fine tradition of no docs for Rails apps … is
this why my hair is falling out :-)

*name

*e-mail

web site

leave a comment