18 Finding Your Way Around 16 Deployment
edit README.md
= The Depot Online Store
This application implements an online store, with a catalog, cart, and orders.
It is divided into two main sections:
* The buyer's side of the application manages the catalog, cart,
and checkout. It is implementation spans in four models and associated
controllers and views: Cart, LineItem, Order, and Product. Additionally,
there is a StoreController for the store front itself, and a
SessionsController to manage sessions.
* Only administrators can access stuff in the seller's side
(product maintenance and order fulfillment). This is implemented by the
SessionsController, is enforced by the ApplicationController#authorize
method, and assisted by the Users and Carts resources.
This code was produced as an example for the book {Agile Web Development with
Rails}[http://www.pragprog.com/titles/rails4/agile-web-development-with-rails-4th-edition]. It should not be
run as a real online store.
=== Authors
* Sam Ruby, IBM
* Dave Thomas, The Pragmatic Programmers, LLC
* David Heinemeier Hansson, 37signals
=== Warranty
This code is provided for educational purposes only, and comes with
absolutely no warranty. It should not be used in live applications.
== Copyright
This code is Copyright (c) 2013 The Pragmatic Programmers, LLC.
It is released under the same license as Ruby.
rake doc:app
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from rescue in <class:Exception> at /home/rubys/.rvm/gems/ruby-head-n50123/gems/web-console-2.1.2/lib/web_console/integration/cruby.rb:37)
rake aborted!
Don't know how to build task 'doc:app'
(See full trace by running task with --trace)
rake stats
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from rescue in <class:Exception> at /home/rubys/.rvm/gems/ruby-head-n50123/gems/web-console-2.1.2/lib/web_console/integration/cruby.rb:37)
+----------------------+--------+--------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+--------+--------+---------+---------+-----+-------+
| Controllers | 637 | 396 | 9 | 57 | 6 | 4 |
| Helpers | 26 | 24 | 0 | 1 | 0 | 22 |
| Models | 114 | 72 | 5 | 7 | 1 | 8 |
| Mailers | 28 | 14 | 2 | 2 | 1 | 5 |
| Javascripts | 52 | 3 | 0 | 2 | 0 | -1 |
| Libraries | 0 | 0 | 0 | 0 | 0 | 0 |
| Controller tests | 390 | 280 | 8 | 46 | 5 | 4 |
| Helper tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Model tests | 130 | 90 | 5 | 9 | 1 | 8 |
| Mailer tests | 34 | 25 | 2 | 4 | 2 | 4 |
| Integration tests | 198 | 138 | 2 | 10 | 5 | 11 |
+----------------------+--------+--------+---------+---------+-----+-------+
| Total | 1609 | 1042 | 33 | 138 | 4 | 5 |
+----------------------+--------+--------+---------+---------+-----+-------+
Code LOC: 509 Test LOC: 533 Code to Test Ratio: 1:1.0