-
Install git.
-
Install ruby & rails.
-
bundler will manage the gems for the project
sudo gem install bundler
-
Checkout the project
git clone git@github.com:annaswims/GrinnellPlans.git cd GrinnellPlans
-
Install the gems that are specified in Gemfile
bundle install
-
Create the database (specified in database yml) and seed it with data
rake db:setup
-
Start the server. GrinnellPlans will be at localhost:3000
rails server
-
To generate diagrams (in doc/):
rake diagram:all
diagrams are also generated after rake db:migrate.
-
To annotate models (that is, to add the column info to the models as comments):
annotate
-
To use the Rails console (for debugging, playing with data, etc):
rails console
-
To pretty up the display of data when you’re using the console:
Hirb.enable
-
to run rspec tests bundle exec rake spec
-
to run non-rspec tests rake test