apiモードでnewしてrspecとfactory_botを設定したプロジェクト
bundle install --path=vendor/bundle
bundle exec rails new ./ -B --api
gibo dump rails >> .gitignore
bin/rails generate rspec:install
bundle exec spring binstub rspec
config/application.rb
config.generators do |generator|
generator.test_framework :rspec,
fixtures: false,
request_specs: true,
helper_specs: false,
routing_specs: false
generator.factory_bot true
end
config/application.rb
module SampleRails6Api
https://railsguides.jp/security.html#%E7%8B%AC%E8%87%AA%E3%81%AEcredential