Skip to content

jbhannah/rails-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brooke's Rails Template

My personal preferred template for starting a new Rails application.

Requirements

  • Ruby
  • rbenv
  • Node.js
  • PostgreSQL (unless you specify a different database)

Usage

Use the template directly with rails new:

rails new APP_PATH [options] --template=https://raw.githubusercontent.com/jbhannah/rails-template/HEAD/template.rb

or run a bootstrapping script that uses Bundler to install Rails, then forwards options to bundle exec rails new:

curl -L https://raw.githubusercontent.com/jbhannah/rails-template/HEAD/bootstrap.rb | ruby - APP_PATH [options]

and then start your app:

cd APP_PATH # you can skip this if APP_PATH is .
bin/dev

Overrides

When running the bootstrapping script, the following options are passed to bundle exec rails new:

--css=postcss
--database=postgresql
--devcontainer
--javascript=esbuild
--template=https://raw.githubusercontent.com/jbhannah/rails-template/HEAD/template.rb

With the exception of --template, any options you specify will take priority over these overrides.

[!CAUTION] These overrides are not applied when using the template with rails new, only when running it as a bootstrapping script.

Updating

You can also (re)apply the template to an existing app:

bin/rails app:template LOCATION=https://raw.githubusercontent.com/jbhannah/rails-template/HEAD/template.rb

Development

bundle install
rake --tasks

Copyright

Copyright © 2025 Jesse Brooklyn Hannah. Licensed under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors