Skip to content

btihen/coupled_vs_modular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c10427d · Oct 19, 2023

History

10 Commits
Oct 19, 2023
Sep 30, 2023
Oct 18, 2023
Sep 30, 2023
Jul 22, 2023
Oct 7, 2023
Sep 30, 2023
Oct 5, 2023
Jul 14, 2023
Sep 30, 2023
Sep 30, 2023
Oct 19, 2023
Oct 19, 2023
Sep 30, 2023
Jul 14, 2023
Oct 19, 2023
Sep 30, 2023
Oct 5, 2023

Repository files navigation

The Messy App

This is a ruby kata exploring coupling & cohesion in a typical messy app.

Getting Started

  • If you don't use asdf, ensure you have the right ruby installed (see .tool-versions).
  • If you don't use direnv, ensure you have all the environment variables set (see .envrc).
  1. Run bundle install
  2. Run rake db:create db:migrate
  3. Run rspec

Usage without variables is:

  1. Run export SCHEMA=db/schema.rb
  2. Run bundle install
  3. Run rake db:create db:migrate
  4. Run rspec

When in doubt do (or if you mess up the environment) use:

SCHEMA=db/schema.rb rake db:environment:set RAILS_ENV=development
SCHEMA=db/schema.rb rake db:drop db:create db:migrate