Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Example application

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 features
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
Octocat-spinner-32 cucumber.yml
README
== Puppies example application

This is an example application that I am developing to use in an ATDD course as well
as my book.

Once you download (clone) the project you will need to ensure you have all of the necessary gems.  You can do this by executing:

    bundle

in the puppies directlry.  After this command completes you can start the application by executing:

    rails s

This will start the application.  Simply point your browser at http://localhost:3000 and you should see the puppy appliation.

If you would like to populate the database with some sample puppies, you can execute the following commands:

    rake db:seed

    rake db:migrate

This will populate the database with a few sample puppies. You may need run theese commands with bundle exec as:

    bundle exec rake db:seed
    bundle exec rake db:migrate  


Note:  If you had already executed the 'rails s', you may want to stop it by pressing Control-C before you seed the database.
When the rake command completes, execute 'rails s' again to start the server again.
Something went wrong with that request. Please try again.