19 Finding Your Way Around 17 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
rake aborted!
Don't know how to build task 'doc:app' (see --tasks)
/home/rubys/.rvm/gems/ruby-2.4.1/gems/rake-12.2.1/exe/rake:27:in `<top (required)>'
/home/rubys/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/rubys/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
rake stats
+----------------------+--------+--------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+--------+--------+---------+---------+-----+-------+
| Controllers | 628 | 406 | 9 | 58 | 6 | 5 |
| Helpers | 25 | 23 | 0 | 1 | 0 | 21 |
| Jobs | 13 | 8 | 2 | 1 | 0 | 6 |
| Models | 162 | 110 | 7 | 7 | 1 | 13 |
| Mailers | 33 | 15 | 2 | 2 | 1 | 5 |
| Channels | 19 | 15 | 3 | 2 | 0 | 5 |
| JavaScripts | 71 | 11 | 0 | 5 | 0 | 0 |
| Libraries | 39 | 34 | 1 | 1 | 1 | 32 |
| Controller tests | 398 | 280 | 8 | 45 | 5 | 4 |
| Helper tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Model tests | 132 | 92 | 5 | 9 | 1 | 8 |
| Mailer tests | 39 | 26 | 2 | 4 | 2 | 4 |
| Job tests | 7 | 3 | 1 | 0 | 0 | 0 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
| System tests | 309 | 213 | 5 | 21 | 4 | 8 |
+----------------------+--------+--------+---------+---------+-----+-------+
| Total | 1875 | 1236 | 45 | 156 | 3 | 5 |
+----------------------+--------+--------+---------+---------+-----+-------+
Code LOC: 622 Test LOC: 614 Code to Test Ratio: 1:1.0