There's been some discussion lately about Rails app templates and how they could be a lot more useful. After having spent a ton of time building Rails app templates for GoRails and Jumpstart, I can definitely feel the pain point. Nate Berkopec [tweeted](https://twitter.com/nateberkopec/status/1259634098353537024) about templates as well recently.
One of the things that is definitely frustrating is installing something like Bootstrap. You've got a bunch of different files to configure and it's easy to miss a step. We've packaged all that into a [Rails app template](https://railsbytes.com/public/templates/x9Qsqx) so all you have to do is run a single command to install it.
These app templates are definitely trickier to build because they'll need to verify Rails version and other dependencies (like is webpacker installed, etc), but I think if done well they can save Rails devs a ton of time. Plus, app templates can be run against existing Rails apps, not just brand new ones.
So here you have it: [railsbytes.com](https://railsbytes.com)
It took u/king601 and I about 8 hours to build this first version so we know there's a lot to improve, but we hope it can serve as a foundation to help make adding common gems, features, and other things in Rails much easier.
Some interesting examples:
Installing Devise is interactive. It can ask you what model you want and what extra fields so you don't have to remember any of the commands: [https://railsbytes.com/public/templates/X8Bsjx](https://railsbytes.com/public/templates/X8Bsjx)
Same thing applies to gems like HoneyBadger that need to ask for an API key: [https://railsbytes.com/public/templates/zNPsmV](https://railsbytes.com/public/templates/zNPsmV)
You can have a Rails app template trigger chain other Rails app templates together like this one that installs Rspec, Factorybot, and Standardrb: [https://railsbytes.com/public/templates/V4YsyX](https://railsbytes.com/public/templates/V4YsyX)
Wanted to share this with you guys and we're curious to hear what you guys think. It seems like it's got a ton of potential to do all sorts of interesting things.