Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.53 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.53 KB

rails-templates

The @bigfleet way to start a Rails app

Prerequisites

Motivation

I first created this for some students for Rails classes I taught several years ago.

In the time since, I have created many Rails apps, and have returned to this template to help.

When beginning a project, you do not need to understand everything first. As students and newcomers become more familiar with the landscape, they can assess the choices here and decide whether or not they are right for them.

The git history will speak here about software erosion.

Usage

The basic application can be created with this command:

rails new YOUR_APP_NAME_HERE \
  -m https://raw.github.com/bigfleet/rails-templates/master/new_app.rb

Start it up!

When VS Code asks you if you'd like to open in a dev container, say 'yes'.

This will get you to a terminal.

rails s -b 0.0.0.0

Gems

References

  • Suspenders -- the king of Rails templates. (Maybe I should just replace my preferences with Thoughtbots...)
  • Thor API docs -- for finding what you can do in these sorts of .rb files, since the guides aren't comprehensive.