Commands - Thiago-Cardoso/CentralPizza GitHub Wiki

Run application docker-compose up

Bundle Install docker-compose run website bundle install

RSPEC Generate rspec test for controller user docker-compose run web rails g rspec:controller user

Running unit test in user model docker-compose run website bundle exec rspec spec/models/user_spec.rb

RAKE TASK Generate task for cleaning and setup docker-compose run website bundle exec rails g task clean_setup populate_models

Generate task for user create docker-compose run website bundle exec rails g task user create

Generate task for user create docker-compose run website bundle exec rails g task position create

Generate scaffold for table model docker-compose run website bundle exec rails g scaffold table description status:boolean

Unit Test in table model docker-compose run website bundle exec rspec spec/models/table_spec.rb

Controller Test docker-compose run --rm website bundle exec rspec spec/controllers/category_products_controller_spec.rb

Model Test with FactoryBot docker-compose run --rm website bundle exec rspec spec/models/order_report_spec.rb


Running the rake tasks to clean data and populate with faker values docker-compose run --rm website bundle exec rails clean_setup:populate_models