2.6.5
gem 'active_model_serializers' -- scopes: root
gem 'rswag'
gem 'pry-byebug' -- scopes: development and test
gem 'rspec-its' -- scopes: development and test
gem 'rspec-rails' -- scopes: development and test
gem 'rubocop', '0.80.1', require: false -- scopes: development and test
gem 'rubocop-performance', require: false -- scopes: development and test
gem 'rubocop-rails', require: false -- scopes: development and test
gem 'factory_bot_rails' -- scopes: development and test
gem 'shoulda-matchers' -- scopes: development and test
gem 'faker' -- scopes: development and test
gem 'database_cleaner-active_record' -- scopes: test
- Database creation and initialization
rails db:setup
rails s -p 3000 -b '0.0.0.0'
docker-compose up
Database setup, migrations and seed have been configured on the docker-entrypoint.sh
file.
localhost:3000/api/v1
Resources - Direct link
swagger/v1/swagger.yaml
or
bundle exec rspec
- Rspec: under
spec/*
- Shoulda Matchers: under
spec/spec_helper.rb
- DatabaseCleaner: under
spec/spec_helper.rb
- FactoryBot: under
spec/spec_helper.rb
- Validation Support: under
spec/support/validation_support.rb
- Minitest has been replaced by Rspec as test suite. The Rspec structure has been initialized with:
rails g rspec:install