forked from AdaGold/betsy
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagrid/master #15
Open
yourFriendWes
wants to merge
337
commits into
Ada-C4:swagrid/master
Choose a base branch
from
yourFriendWes:swagrid/master
base: swagrid/master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,712
−277
Open
Swagrid/master #15
Changes from all commits
Commits
Show all changes
337 commits
Select commit
Hold shift + click to select a range
02abfd5
Adding update functionality for order items in cart
brittanykohler f30dfaa
Adding placeholder button for checkout and subtotal
brittanykohler 0466a82
Merge pull request #2 from wesleywillis/swagrid/cart
brittanykohler 5ea1ab8
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 7aab9c0
added erd and font-awesome gems
emgord 785e0f7
added spec and valdiations for order items
emgord 3658390
added spec and validations for reviews
emgord 9d46f7d
Fixed error that occured when adding item to cart that was not alread…
brittanykohler 28f1b84
added validates presence of order items to Order, not sure how to test
emgord c5d9349
Wrote first rspec test for order_items_controller
brittanykohler 4429411
fixed reviews params per charles' recommendation
rmtolmach 90df034
Trying to add more tests to order items controller
brittanykohler 4748583
Changing styling for image on product show page
brittanykohler bc8211f
added relationships so orders can be accessed through merchants
emgord 028aff9
Merge pull request #3 from wesleywillis/swagrid/emily
wesleywillis ae05ce5
Added three excellent tests for create method in order_items controller
brittanykohler 7a9cb6b
wrote tests for logging in
emgord a3135e7
Merge branch 'swagrid/login' of github.com:wesleywillis/betsy into sw…
emgord 7f3c2c4
created view for new session and started controller methods for sessions
rmtolmach 9b89928
fixed test
emgord 0a09acb
Adding rspec tests for destroy method in order items controller
brittanykohler 21dd94d
add table that displays orders included specific merchant's products
yourFriendWes 11e8df2
Adding tests for update method in order items controller
brittanykohler 66e5251
merchants can login
rmtolmach cad896d
Changing cart method to orders#cart rather than orders#show, also put…
brittanykohler a109b1f
Centering image on product show page
brittanykohler af74f55
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 49b18bf
most tests for login and login functionality
rmtolmach f5d5f53
Merge pull request #5 from wesleywillis/swagrid/login
rmtolmach 6994592
Merge in branch swagrid/cart
brittanykohler 62baf07
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler d6a8da3
added name to home page if logged in, and only shows delete and edit …
emgord fd0fa4b
merchant can't review own products
emgord 26e9cee
Updating categories on nav and making title on products index page dy…
brittanykohler e292350
Changing font, adding CSS to home page, and adding dropdown to nav fo…
brittanykohler 1de51e1
Adding favicon
brittanykohler 800e97c
Merge branch 'swagrid/login' into swagrid/master
emgord aada7e8
merchant dropdown is now inline
rmtolmach 3f6e096
merging in login branch
emgord f8998e5
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord a19e4fa
added guest user
emgord cd5a643
guest fixed
emgord f1a1791
Updating margin for nav links
brittanykohler 04c00d0
Changing the order of categories on nav
brittanykohler ad32a55
must be logged in to view merchant show page
emgord 4cf6979
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord de6771f
fixed so when not logged in can still view product show page
emgord 47e99a3
login button shows if not logged in, logout button shows if logged in
emgord 4e4500d
Updating some styling on the cart page
brittanykohler 6d4242d
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 6f37779
Fixing class for quantity input on cart page, as it was affecting inp…
brittanykohler a29ed7f
required simplecov
rmtolmach 3fc1bdd
Adding link to add a product on merchant show page
brittanykohler 4bfd286
Commenting out validation for order.rb (must have one order_item) and…
brittanykohler 77ef143
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler abc6a7b
troubleshooting login
emgord 440a476
merge conflicts fix
emgord a8d0cf3
add feature to show count of orders by status on merchant show page
yourFriendWes c855337
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 08206d1
Fixing routes for orders (changing it from order to orders), removing…
brittanykohler 1639604
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 1c27103
Adding rspec tests for orders controller create method. Commenting ou…
brittanykohler 9923cd4
Commenting out bits of code that I don't think are ever reached and a…
brittanykohler 6a5f8f0
Just kidding, uncommenting out code in application controller, it was…
brittanykohler f75c74b
logout function added
emgord a56a82c
added logged_in? and redirect if logged in
emgord 36418dd
merchant can only view own page, and must be logged in
emgord b8f7291
fixed indentation on merchant controller
emgord 3d199ea
fixed conflicts merging in logout page
emgord c5fcfa3
Merge pull request #8 from wesleywillis/swagrid/logout
emgord f9a026b
Trying to add validations for order item quantity, but they aren't wo…
brittanykohler 68764fc
Writing a better description for error in quantity validation in comm…
brittanykohler 253b1b0
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler cefcd88
added validation that order must have order items if paid, complete o…
emgord 5b54f43
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 786962f
reviews controller spec not working.
rmtolmach 7bf4453
fix bugs in merchant show page
yourFriendWes b8be364
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes a14fad2
Adding validation and error message - user cannot add more items to c…
brittanykohler 481c130
Adding error messages when user tries to add more items to cart than …
brittanykohler 13c1a87
worked unsuccessfully on sorting by status
yourFriendWes f546c3b
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 5d0fd16
Fixed rspec tests for order items controller
brittanykohler 7cbced6
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler edabae9
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 7dc078d
Got order items controller spec to 100% coverage
brittanykohler 9701394
add feature to filter orders by status
yourFriendWes 6df0c67
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 99849e5
Adding files for checkout functionality-- not yet executed
brittanykohler 8b1de0f
add status column to order_items table
yourFriendWes 342aa77
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes cb4533f
add shipped? method to order items
yourFriendWes 031c4c6
reviews controller spec working
rmtolmach d0833db
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 9c4f2af
worked on product controllers
emgord c048886
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 91ad507
css on reviews page. awesome
rmtolmach adce5d4
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach b6b384c
add method and button for merchant to mark items shipped
yourFriendWes fc9388c
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 5671ad4
move order status filter to table header
yourFriendWes be98338
move add product button and add non-functioning button when items hav…
yourFriendWes 89c52df
page to become a merchant created
rmtolmach 361c238
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach bb3484b
Updated order model to include all necessary columns for checkout for…
brittanykohler 65ed750
new merchant can be created
rmtolmach 41aaf0e
products controller working, updated seed data
emgord 8ee9579
Adding update method to orders controller
brittanykohler 918f93c
Changing update method to confirmation method, creating confirmation …
brittanykohler 8f1acaf
added restrictions on products if logged in/out, with tests
emgord a506957
errors show up if merchant tries to create an accout but already has one
rmtolmach 3362168
add merchant specs for logged in actions
yourFriendWes 145812b
Adding method to update inventory once order is submitted
brittanykohler 02c5657
product spec is the best ever
emgord 81bf526
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 840f642
Updating centering of images on home page
brittanykohler a5423dd
add method to mark order as compelte when all items ship
yourFriendWes 01e9d42
create test working for merchants controller
rmtolmach 3e00f9a
one more merchant test passes. renders a new page on error
rmtolmach ffdc4ec
add order show page and wrote method to restrict view to merchants it…
yourFriendWes cf2ba3c
Adding very basic validation for checkout form, still need to update …
brittanykohler 4b6b0d1
Better messages now for errors in checkout form
brittanykohler f7bcba8
merchants cannot edit, delete or create products for other merchants
emgord 71bb70b
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord a21b4fd
two lines of css
rmtolmach 709009a
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 0c544e2
Adding numericality validations for checkout form
brittanykohler 7047b85
created merchant view page to edit manage all products
emgord 4fcb998
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord e543642
merchant can update products from product index page
emgord aae1566
add method for fake admin to cancel order
yourFriendWes 7155c5c
Adding errors when a customer tries to check out and another customer…
brittanykohler 78acf43
Deleting some commented out code
brittanykohler b99dca2
Merge branch 'swagrid/checkout' into swagrid/master
brittanykohler 85ed854
Fixing merge issues, merging in checkout branch
brittanykohler 8b099ce
Fixing rspec tests for orders controller spec show method
brittanykohler 23deac4
dropup to edit own merchant's products
emgord 2097dab
Merge pull request #11 from wesleywillis/swagrid/productindex
emgord 6d2fbac
retire toggles between true and false. new route for retire
rmtolmach f210dc4
merge conflicts fixed
rmtolmach fe5561e
fix bugs caused by new migration on order show page
yourFriendWes d159c22
fix bug in merchant show- filtered views now show accurate total orde…
yourFriendWes f004a31
Adding rspec tests for confirmation method in orders controller
brittanykohler 9c983da
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 036d4d9
retire funtionality for product show pare and home index page
rmtolmach 8d87389
add select multiple categories funtion to product forms
yourFriendWes f5ff9e2
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 47cb692
100% coverage for orders controller spec
brittanykohler b3ea177
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler f762b09
merchant can add new categories
emgord b3f4a84
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 116b7af
form collection checkbox added for product categories
emgord 49c8d93
spec for category model
emgord e9d2b71
category save and add another goes to category new page
emgord 76776df
errors show up if incorrect input for categories
emgord cf0ba36
update new category form"
emgord b76b828
retiring products fully functional
rmtolmach 516848a
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 515835d
added category selection for new and updated products
yourFriendWes 6f5e4df
Fixing some of the order_item rspec tests
brittanykohler 0dbac46
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 6de7aad
Adding required info to confirmation page
brittanykohler d34934b
Centering checkout form
brittanykohler 9f6c8f3
controller edits for retire
rmtolmach 548f362
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 2208d65
fix bug that caused revenue by status to print multiple times on merc…
yourFriendWes 45c463a
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 089e9ae
checked off completed tasks on README, fixed products controller spec…
emgord 371a95c
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord efd759e
fixed order item specs
emgord d09e58b
Updating styling on order show page
brittanykohler 36f0a9d
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 90d1f15
fix shipped method so that only paid items can ship
yourFriendWes a2e89fe
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 5ff4a63
delete 'complete?' method in order.rb and move logic to shipped metho…
yourFriendWes fb3f490
added default value for retire column
rmtolmach 4e01a07
Updating nav bar on home page to show additional categories as dropdown
brittanykohler a4b0c59
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler ddf2863
retire turns into activate when product is retired
rmtolmach 98f1b81
fixed merge conflict in products controller spec
rmtolmach ab212bb
commented out migration for order items
rmtolmach 01ae4c2
Adding search bar to nav
brittanykohler 66fa3ad
Fixing merge issues in product controller
brittanykohler ad7ef7a
carousel started
emgord 31f4bbc
carousel working
emgord 1088c89
Adding description to search method, now user can find items with key…
brittanykohler f78ba8a
moved caption under images in carousel
emgord ccb1a85
Adding rspec tests for search method in product model
brittanykohler 6fe2fc4
spec for retire working
rmtolmach 3aa02fc
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 08e2db5
add redirects if unauthorized user tries to access order show
yourFriendWes f9be259
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes 9bd5f75
Adding tests for order items controller
brittanykohler b88c859
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler 7e7d179
grey arrows, centered captions
emgord db22a00
Merge branch 'carousel/master' into swagrid/master
emgord 28bf991
fixed merge conflicts for carousel addition
emgord cb41de4
css missing } after merge, added back in
emgord ef35e49
more seed data
rmtolmach 1c010cc
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 691eaad
Centering titles and buttons, adding some styling to dashboard, but s…
brittanykohler cac6b43
Additional centering, some styling to product show page
brittanykohler 0d5bf72
maybe fixed seeds
rmtolmach 78dd2bd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach f9e25eb
seeds actually working. Damn validations.
rmtolmach f2c42b9
Updating number of categories on nav bar, adding new category nav bar…
brittanykohler 6b40c37
'Reviews' doesn't show up if there are no reviews
rmtolmach 326d625
add flash errors when unauthorized viewer tries to see order summary …
yourFriendWes 02f2368
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes f297cee
merchant cannot log in or create new merchant if already logged in
emgord c0c0f01
removed link to sign up to be a merchant if already logged in
emgord 248f159
Updating checkout button
brittanykohler 7340c39
Fixing order items controller specs - product name must now be unique…
brittanykohler cc39e99
delete commented out things from merchant controller spec
emgord e6cc36e
Merge pull request #13 from wesleywillis/swagrid/loginrestrict
emgord 08f9ac5
All tests for order items controller now pass
brittanykohler 01475c7
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler cbabcca
fixed carouselgit add .
emgord 0d0a359
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord 32fbb50
add redirect and error to prevent merchant from leaving review on own…
yourFriendWes bfc3bd8
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes efd03d2
add order validation so customer cannot enter expired gringott's card
yourFriendWes e6a6faa
deleted last pushed validation in order.rb
yourFriendWes d79a306
one test that isn't passing
rmtolmach e2e49bd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach d8fa529
Updating show method test for orders controller
brittanykohler 1fdd8fd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler e38d62d
Updating validation test for order item model
brittanykohler 60b855b
working on navbar
emgord 7301d21
Fixing review create method
rmtolmach 8a2f962
changed bootstrap classes to fix navbar
emgord a2b5ab5
Merge pull request #14 from wesleywillis/swagrid/nav
emgord 4ab9693
Fixing search function to be case insensitive
brittanykohler d886fc3
reviews controller specs working
rmtolmach 2c86f4b
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach bc5be5c
more nav bar fixes
emgord c25c25d
Adding black buttons everywhere
brittanykohler 1abf8b8
Resolving merge conflicts in application scss file
brittanykohler 4944b19
Fixing missing bracket in css file
brittanykohler 22d9078
Created partial for category nav
brittanykohler ac10c9e
nothing
rmtolmach 2d6b8cd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach 42fc4f9
small fixes
rmtolmach 7406eab
order_items time fixed for heroku
rmtolmach ea01ec8
changed production.rb line to false
rmtolmach 347cbac
fixed error on order_controller show page
rmtolmach 132ddef
uddated readme
rmtolmach af7c223
retricted so merchants cannot retire other merchant's products, and m…
emgord a760ae5
fixed merge conflict
emgord ad4d572
renders categories when editing products and doesn't save
emgord File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--color | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
betsy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.2.3 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,207 +1,20 @@ | ||
####[Swagrid Trello Board](https://trello.com/b/j4Wo3GDY/swagrid) | ||
# Swagrid | ||
Diagon Alley is online! Get your fancy cauldrons, broomsticks, potion ingredients and more with just a few clicks! Start shopping [here](http://swagrid.herokuapp.com). Swagrid is an online marketplace built with Ruby on Rails. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Love the description here! |
||
|
||
# bEtsy | ||
[b]Etsy will be an online store where a wide variety of products can be listed and sold by any user. In this project we will focus on reinforcing the major components of Rails, Model Validation, as well as introducing some more complex logic such as user authentication. | ||
### Authors | ||
- [Emily Gordon](https://github.com/emgord) | ||
- [Brittany Kohler](https://github.com/brittanykohler) | ||
- [Rebecca Tolmach](https://github.com/rmtolmach) | ||
- [Hailey Willis](https://github.com/wesleywillis) | ||
|
||
#### In this project you will cover | ||
### Company | ||
All authors are students at [Ada Developers Academy](http://adadevelopersacademy.org/) | ||
|
||
- Core comprehension of: | ||
- Routes | ||
- Controllers | ||
- Models | ||
- Views | ||
- User based application logic | ||
- User authentication | ||
- Agile practices | ||
- Group project ownership | ||
### Ruby version | ||
- using Ruby version 2.2.3 | ||
|
||
#### Guidelines | ||
### Rails version | ||
- 4.2.5 | ||
|
||
- Groups of three or four will collaborate in pairs or individually and will report to their assigned Project Manager (one of the instructors) | ||
- Use a task manager like [Trello](http://trello.com) to track your team's efforts | ||
- Build a logical user-flow that moves across multiple controllers and models | ||
- Use HTML/CSS to style your website | ||
|
||
### Restrictions | ||
|
||
- Do not use gems for user authentication (such as Devise) | ||
|
||
### Getting Started | ||
|
||
1. As a group decide on an app name (this may help lead the aesthetic) | ||
1. As a group decide on a team name (this will amuse your instructors) | ||
1. Create a branch on the master repo with your team name | ||
1. Have one person on your team fork/clone the project master as per usual | ||
1. Figure out your workflow for the project, re: Git and Task management | ||
1. Determine who will be the Stand Up Leader and Task Leader for the first week | ||
1. Create a Trello board and ensure that all team members and instructors have access | ||
1. Setup a basic Rails application (without using Minitest, but WITH RSpec), and submit a baseline PR with the generated application. | ||
|
||
### Expectations | ||
|
||
Build an online system for listing, selling, reviewing, and buying a wide variety of products listed by multiple merchants. | ||
|
||
#### General Requirements | ||
- RSpec tests for | ||
- Controllers | ||
- Models | ||
- Routes (optional) | ||
- Test code coverage (using SimpleCov) | ||
- 90% for all controller and model classes | ||
|
||
#### Guest User (Unauthenticated) | ||
|
||
As a guest to the website (not signed in) I **can**: | ||
|
||
- Browse all products | ||
- Browse products by category | ||
- Browse products by merchant (users) | ||
- View any individual product with additional details | ||
- Leave a review for a product providing: | ||
- A Text review | ||
- A rating out of 5 | ||
- Add in-stock products to my cart | ||
- Remove products from my cart | ||
- Change the quantity of an existing product in my cart | ||
- Purchase the items in my cart, providing: | ||
- Email Address | ||
- Mailing Address | ||
- Name on credit card | ||
- Credit card number | ||
- Credit cart expiration | ||
- Credit Card CVV (security code) | ||
- Billing zip code | ||
- Purchasing an order makes the following changes: | ||
- Reduces the number of inventory for each product | ||
- Changes the order state from "pending" to "paid" | ||
- Clears the current cart | ||
- After purchasing an order, I can view a confirmation screen including: | ||
- Each item in the order with a quantity and line-item subtotal | ||
- A link to the item description page | ||
- Order total price | ||
- DateTime the order was placed | ||
- The current status of the order | ||
- Sign up to be a merchant, providing: | ||
- Email Address | ||
- Username | ||
- Password (plain text passwords cannot be stored in the database) | ||
- Password confirmation | ||
- Sign in to my merchant account | ||
|
||
As a guest I **cannot**: | ||
|
||
- Add products to the cart that are out of stock | ||
- View any link or page to manage any products | ||
- View any of the account pages | ||
|
||
#### Authenticated Users | ||
|
||
As a signed-in user, I **can**: | ||
|
||
- Do everything a guest user can do except for sign up and sign in | ||
- Sign out | ||
- Create new categories (categories are shared between all merchants) | ||
- Create a new product providing: | ||
- name | ||
- description | ||
- price | ||
- photo URL | ||
- stock | ||
- Assign my products to any number of categories | ||
- Retire a product from being sold, which hides it from browsing | ||
- View an account page to edit/update my existing products | ||
- View an account page showing my order fulfillment | ||
- On the order fulfillment page: | ||
- Total Revenue | ||
- Total Revenue by status | ||
- Total number of orders by status | ||
- Filter orders displayed by status | ||
- Link to each individual order | ||
- A list of orders including at least one of my products: | ||
- Each order item sold by me with a quantity and line-item subtotal | ||
- A link to the item description page | ||
- DateTime the order was placed | ||
- Link to transition the order item to marked as shipped | ||
- The current status of the order ("pending", "paid", "complete", "cancelled") | ||
- View an individual order to see the user's: | ||
- Name | ||
- Email address | ||
- Mailing address | ||
- Last four digits of their credit card | ||
- Credit card expiration date | ||
|
||
As a signed-in user, I **cannot**: | ||
|
||
- Review my own products | ||
- View order items from a shared order that belong to another merchant | ||
- View another users private data (i.e. order fulfillment or product management) | ||
|
||
### Model Validations | ||
|
||
Many of our models will have attributes that are required for our application to use and display data consistently. Each model will have attributes with requirements for a valid record. The requirements are summarized below: | ||
|
||
#### User | ||
|
||
- Username must be present | ||
- Username must be unique | ||
- Email Address must be present | ||
- Email Address must be unique | ||
- Password Confirmation must match Password | ||
|
||
#### Product | ||
|
||
- Name must be present | ||
- Name must be unique | ||
- Price must be present | ||
- Price must be a number | ||
- Price must be greater than 0 | ||
- Product must belong to a User | ||
|
||
#### Order | ||
|
||
- An Order must have one or more Order Items | ||
|
||
#### OrderItem | ||
|
||
- Must belong to a Product | ||
- Must belong to an Order | ||
- Quantity must be present | ||
- Quantity must be an integer | ||
- Quantity must be greater than 0 | ||
|
||
#### Review | ||
|
||
- Rating must be present | ||
- Rating must be an integer | ||
- Rating must be between 1 and 5 | ||
|
||
## Submission Guidelines | ||
Your final project must be deployed to [Heroku](http://heroku.com). Your team will open a single pull request for the entire project. Include the link to your Heroku deployment in the PR's description. | ||
|
||
Your `README` file on your Github repo should contain a link to your live site. | ||
|
||
## Team Leaders | ||
Each team will have team leaders who are responsible for keeping track of each team member's contributions. Rotate leader roles at the beginning of each week; every team member should be in at least one leader role during the project. | ||
|
||
- Stand Up Leader | ||
- Notifies team members about meeting schedule and ensures that everyone is present and ready | ||
- Takes notes about each person's daily report in Stand Up | ||
- Keeps the meeting moving | ||
- Task Leader | ||
- Leads discussion on task assignment | ||
- Decide if a task should be completed alone or in a pair | ||
- Assign tasks based on... | ||
- Individual comfort | ||
- Desire | ||
- Ability | ||
- Ensures the task list stays up to date | ||
|
||
## Stand Up Meetings | ||
The Project Manager for your team will determine the timing for all Stand Up meetings. Because PMs are managing multiple projects at once this time will be different for each team, and may change from day to day. The meeting schedule will be communicated to the Stand Up Leader as soon as it is determined. | ||
|
||
At the end of each day, your team's assigned Project Manager will review the Trello board for all tasks discussed during that day's Stand Up meeting. | ||
|
||
## Weekly Demos | ||
In a real world work environment, a team's success is measured by their product as opposed to each individual's contribution. | ||
|
||
Each team will present their progress and respond to questions from their Project Manager each Friday. Every team member will participate in these demos; the PM will ask specific questions regarding 1) the team's progress and plan for completing the project, 2) the technical decisions and implementation, and 3) every team member's understanding of the underlying technical structures. | ||
### Known Bugs | ||
- Zip code is stored as an integer in the database, so a merchant cannot have one that starts with a zero. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is always a good thing to include in your README file! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this might be seem small, but this is such good practice! I once had Heroku blow up on me because I was using a built-in method that was in a newer version of Ruby. 👍