Reputation: 10952
It's easy to create a new Rails application using "rails new myapp" (or start with a template from Rails Wizard or the RailsApps project).
But after that, what do you do? What gems do you always add? What decisions do you make before beginning development? What important items are often overlooked before deploying an app?
I'd like to put together a reference checklist to share. Any suggestions?
For example:
What else?
Upvotes: 17
Views: 3977
Reputation: 6637
I got tired of having to remember and repeat the mundane tasks required for every new app.
If you're looking for guidance on getting started, we've recently (yesterday!) released a tool to speed up the process, with all sorts of tried and tested libraries for the various aspects of a Rails web app, as well as cleanup scripts to get the fresh app just the way it should be.
Check out http://drone.bz to build an app the same way we do. Under the hood, it uses the app_drone gem to resolve dependencies and build the actual template, but the UI is probably all you need to get started.
There are several similar tools out there, but I decided to be highly opinionated in my recipe choices, and the end result is a solid foundation on which to start developing :)
P.S. Even if you don't use the drones, you can take a look at the steps that are common enough in Rails dev to be automated.
Upvotes: 1
Reputation: 1568
For me usual process involves:
I'll usually copy over my google_analytics helpers and sitemap_controller from other projects during the development process instead of being organised enough to do it from the start. I like to the the testing and deployment options setup from the get go so I can start developing and releasing early and often.
Dave
Upvotes: 6
Reputation: 426
Most of the time:
I almost forgot to mention: mix of html5 boilerplate for rails with twitter bootstrap it's good combo.
Upvotes: 3
Reputation: 20191
create rvm gemset, create .rvmrc, modify .gitignore
Then add gems
then depending on the project, I often use aws3, paperclip, resque, will_paginate and haml (although I try not to use it on new projects anymore)
Upvotes: 3
Reputation: 2274
I don't add anything. Things get added if project requires them.
There's absolutely no reason to bloat project with things just because you "might need it"
Upvotes: 1
Reputation:
Upvotes: 1
Reputation: 513
Starting with a Rails template.
You should look theses resources :
Upvotes: 9
Reputation: 11
The first think that I do is head to http://railswizard.org/ and create a template, before "rails new app".
Upvotes: 1