@colinkey/rails-gen

An interactive cli for generating new rails projects

Usage no npm install needed!

<script type="module">
  import colinkeyRailsGen from 'https://cdn.skypack.dev/@colinkey/rails-gen';
</script>

README

rails-gen

A tiny interactive cli for generating new rails projects.

Usage

npx @colinkey/rails-gen

Use npx @colinkey/rails-gen in place of rails new to walk through an interactive cli to configure options that will be passed to the rails new command. rails-gen will then give you the option to execute the command in the current directory to generate your rails project or output the command to the console.

Requirements

Currently, rails-gen is only tested as working with Rails 6. Older versions may not be supported but ideally will be in the future.

FAQ

Q. Why?
A. There's a lot of configuration options for generating rails projects and they can be hard to remember if you aren't creating new rails projects very often.

Q. What's the difference between this and just typing rails new with flags?
A. Nothing! It's an interactive way to do just that. The end result is a generated rails new command.

Q. Why is a rails generator written in javascript?
A. I wrote this to help myself out and I know JS better than Ruby. Plus, npx makes using the cli fairly frictionless.