Rails App Templates
How to make your developer's life easier
Slide 2
Slide 2 text
What ?
● Ruby files to automatically add gems/css/javascripts/... and set up your
rails app (environment, DB, git, deploy, data seeds, layouts, views, ...)
Slide 3
Slide 3 text
Why ?
● Easy project set up for new developers
● Quickly get an app up and running
● Get rid of boring and repetitive tasks to get all basics stuff working on new
apps
● Global productivity increase even if could be time consuming at the
beginning
Slide 4
Slide 4 text
How?
● Rails template generators
● Rails templates
● Git
● Combination of all these possibilities
Rails template
generator
Rails app
template
Rails app
Git
Rails template generators
Pro's
● Modularity, an infinity of combination
● A lot of basic recipes already available
● Still editable by yourself
● Need small changes when updating to new version
● No need to master the gem to use the recipe
Con's
● Generator-specific recipes
● Recipes still missing
● Possibility of incompatibilities between recipes
● Recipes needs to be trusted
● Could lead to weaknesses in gem and system knowledge for developers
● Time consuming if completely handwritten
Slide 7
Slide 7 text
Rails templates
Write templates by yourself
Tools
● Rails generators based on Thor
Pro's
● Handle the complete process
Con's
● Monolithic piece of code
● Lot of work
● Not so easy to maintain on the long run
Git
Use git repository containing basic app
Tools
● Git
Pro's
● Easiest way to get a fully set up rails app
● Finest and widest configuration possibilities than other methods
Con's
● Not modular at all
● Lot of work
● Not so easy to maintain on the long run