- local repo creation:
rails new sweater_weather -T -d postgresql --api
- create GH repo - do not set up readme or any of the other files on GH, it'll cause a merge conflict
- set GH repo to be remote origin of local repo
- initial commit
bundle
=>bundle exec rake db:create
- gems
:development, :test
block:pry
rspec-rails
capybara
- not necessary for only backend applaunchy
factory_bot_rails
:development
blockrubocop-rails
rails-erd
:test
blocksimplecov
shoulda-matchers
- if making third party API calls that need to be mocked
webmock
vcr
- outside blocks
fast_jsonapi
table_print
- if making third party API calls
figaro
faraday
- rspec setup: run
rails g rspec:install
rails_helper.rb
gem setup:- at end of
rspec.configure
block add:config.include FactoryBot::Syntax::Methods # factory bot configuration Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :rails end end # shoulda matchers configuration
- at end of
- if figaro gem added: run
figaro install
- if webmock and vcr gems added
- at beginning of
RSpec.configure...
block inspec_helper.rb
, add:require 'webmock/rspec'
- at end of
RSpec.configure...
block inrails_helper.rb
, add:VCR.configure do |config| config.allow_http_connections_when_no_cassette = true config.cassette_library_dir = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock config.filter_sensitive_data('<API_KEY>') { ENV['API_KEY'] } config.default_cassette_options = { re_record_interval: 7.days } config.configure_rspec_metadata! end
- at beginning of
-
-
Save rrabinovitch/eab9e4bd4dc5838e2c389dcc75b78986 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://superuser.com/questions/1419613/change-git-init-default-branch-name