Kitchen Sink

Public
Everything you need to get going.
Icons/chart bar
Used 17 times
Created by
C Cameron Barker

Usage
Everything you need to get going building great apps.

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/VKAsQ9"
Template Source

Review the code before running this template on your machine.

git add: "."
git commit: "-a -m 'Initial commit'"

puts "Template: HAML"
run "bundle add haml haml-rails"
git add: "."
git commit: "-a -m 'Haml'"

puts "Template: RSPEC, FactoryBot, Standard"
run "rails app:template LOCATION='https://railsbytes.com/script/x7msy4'"
run "rails app:template LOCATION='https://railsbytes.com/script/X8Bskb'"
run "rails app:template LOCATION='https://railsbytes.com/script/x9Qs55'"
git add: "."
git commit: "-a -m 'Rspec, FactorBot, Standard'"

puts "Set up Configs"
run "rails app:template LOCATION='https://railsbytes.com/script/xjNsoZ'"
git add: "."
git commit: "-a -m 'Initalizer Config'"

puts "Template: Devise"
run "rails app:template LOCATION='https://railsbytes.com/script/X6ksY3'"
run "rails generate devise:views"
git add: "."
git commit: "-a -m 'Devise'"

puts "Template: Pry"
gem_group :development, :test do
	gem "pry-rails"
end
run "bundle install"
git add: "."
git commit: "-a -m 'Pry'"

puts "Template: Tailwind"
run "rails app:template LOCATION='https://railsbytes.com/script/VRZsEQ'"
git add: "."
git commit: "-a -m 'Tailwind'"

puts "Template: Figaro"
run "rails app:template LOCATION='https://railsbytes.com/script/VRZs9V'"
git add: "."
git commit: "-a -m 'Figaro'"

puts "Template: Better Errors"
run "rails app:template LOCATION='https://railsbytes.com/script/V33s0D'"
git add: "."
git commit: "-a -m 'Better Errors'"

puts "Template: Error Pages"
run "rails app:template LOCATION='https://railsbytes.com/script/VwysGq'"
git add: "."
git commit: "-a -m 'Error Pages'"

puts "Set Up Heroku"
run "rails app:template LOCATION='https://railsbytes.com/script/VMys2l'"
git add: "."
git commit: "-a -m 'Heroku Config'"

puts "SEO Set Up"
run "rails app:template LOCATION='https://railsbytes.com/script/zNPspe'"
git add: "."
git commit: "-a -m 'SEO config'"

puts "Convert to HAML"
run "bundle add erb2haml --group 'development'"
rake "haml:replace_erbs"
git add: "."
git commit: "-a -m 'HAML Conversion'"

puts "Create landing page"
generate(:controller, "static index")
route "root to: 'static#index'"
git add: "."
git commit: "-a -m 'Landing Page'"

puts "Tailwind Flash Notifications"
run "rails app:template LOCATION='https://railsbytes.com/script/z0gspb'"
git add: "."
git commit: "-a -m 'Flash Notifications'"

puts "Set up staging site"
run "rails app:template LOCATION='https://railsbytes.com/script/V2Gs4W'"
git add: "."
git commit: "-a -m 'Staging Set Up'"

puts "Set Up DB"
rails_command("db:create")
rails_command("db:migrate")
git add: "."
git commit: "-a -m 'DB Set Up'"

Comments

Sign up or Login to leave a comment.