Setup

  1. git clone https://github.com/ryee926/rails-project-builder
  2. cd rails-project-builder
  3. ruby build.rb
  4. Enter project name
  5. Enter table name
  6. Configure migration file
  7. rails db:migrate
  8. rails server

Additional Setup Info

  • Create new controller
  • Create corresponding views folder
  • Create index.html.erb inside folder

Change Root View Page

  1. open routes.rb within the 'config' folder
  2. add root 'examples#index'
  3. add 'resources :examples'
Rails.application.routes.draw do
  root 'examples#index'
  resources :examples
end

Features

  • adds necessary gems to Gemfile
  • bootstrap integration
  • creates spec folder with rails_helper & spec_helper
  • adds should matcher configuration to rails_helper
  • creates migration file
  • configures migration file based on the columns requested
  • generates basic model/controller/view

work-in-progress

Changelog

  • v. 1.0.0