Last active
April 8, 2024 03:35
-
-
Save fdocr/afa2794b477075d3193773608af1b480 to your computer and use it in GitHub Desktop.
New Rails app with RSpec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Terminal | |
| # OLD -> rails new app_name -T --webpack=stimulus --skip-sprockets | |
| rails new app_name -a propshaft --skip-jbuilder -T | |
| cd app/ | |
| # OLD -> yarn add bootstrap jquery popper.js | |
| # Basic Gemfile (DOWN BELOW) | |
| # Terminal | |
| bundle install | |
| rails g rspec:install | |
| # Configure webpack folder (packs/application.js, stylesheets/application.scss, etc) | |
| ################ | |
| # Basic Gemfile: | |
| ################ | |
| source "https://rubygems.org" | |
| ruby "3.3.0" | |
| gem "rails", "~> 7.1.3", ">= 7.1.3.2" | |
| gem "propshaft" | |
| gem "sqlite3", "~> 1.4" | |
| gem "puma", ">= 5.0" | |
| gem "importmap-rails" | |
| gem "turbo-rails" | |
| gem "stimulus-rails" | |
| gem "tzinfo-data", platforms: %i[ windows jruby ] | |
| gem "bootsnap", require: false | |
| # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] | |
| # gem "image_processing", "~> 1.2" | |
| group :development, :test do | |
| gem "debug", "~> 1.9" | |
| gem "letter_opener", "~> 1.8", ">= 1.8.1" # For viewing emails in development | |
| gem "rspec-rails", "~> 6.1" | |
| gem "factory_bot_rails", "~> 6.4" | |
| gem "faker", "~> 3.3" | |
| # Capybara | |
| gem "capybara", "~> 3.40" | |
| gem "capybara-email", "~> 3.0" | |
| gem "cuprite", "~> 0.15" | |
| end | |
| group :development do | |
| gem "web-console" | |
| # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] | |
| # gem "rack-mini-profiler" | |
| end | |
| ################ | |
| # End of Gemfile | |
| ################ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment