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
Wetsy Final #14
Open
kedevlin
wants to merge
440
commits into
Ada-C4:goneby5/master
Choose a base branch
from
kedevlin:goneby5/master
base: goneby5/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.
Open
Wetsy Final #14
Changes from all commits
Commits
Show all changes
440 commits
Select commit
Hold shift + click to select a range
38fb2db
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer c190d48
add flash message to welcome page on login
jbuechs db4094e
Order item model Rspec completed
TammyHer 8a15508
fix logout link
jbuechs 659034a
complete sessions controller
jbuechs e5fdc80
complete sessions controller spec
jbuechs 84ad761
clear out sessions controller
jbuechs 8f13224
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 37b3ec6
Add sessions#create and sessions#destroy
kedevlin 1a39853
resolve merge conflict
kedevlin 8dfaf6a
Update sessions#create
kedevlin 466bb29
define current_user and require_login methods in application controller
kedevlin a2dc8e9
add has_many through relationship between products and orders
kedevlin 45b6211
Add order status field to Order model
kedevlin ea6b188
change navbar according to logging in
jbuechs 360fa4d
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 876d2df
remove review edit functionality
jbuechs b825fc3
Add has_many through relationships to User model for order_items and …
kedevlin ad34808
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin b6d30f7
add before filters to require login for actions
jbuechs 4604e15
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 1ba7ec5
order#index and order#show
kedevlin ff038e7
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 41bf030
wrote a bunch of methods in cart model and created cart controller fo…
TammyHer 0d555ce
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 19b0106
remove delete method for user
jbuechs 641a54f
update users controller for testing logging in
jbuechs 63ebd9b
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs d428c4d
havn't tested yet, but added a few method. commit to pull so we could…
TammyHer 2ca15e3
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer d8d2749
add test for capitalization for category model
jbuechs f6bbc05
update user model and specs to downcase email
jbuechs 49c5fa0
add product_id and order_id presence to orderitem model
jbuechs 64a7f39
add user_id validation to product model
jbuechs 82b6e44
add user_id presence validation to product model
jbuechs df1f6d9
created a card view
TammyHer 1788913
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer beb7adf
add index to foreign keys
jbuechs fc99442
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 9378888
Complete orders#create, remove orders#destroy, edit, and update
kedevlin 8210935
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin dd4d0e2
change default password for users
jbuechs b0b3e02
update products controller for logging in
jbuechs 51b4c5b
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 6549eef
Update order controller specs
kedevlin d80e3d9
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 2b512c4
refactor layout container div
jbuechs ce7b98e
create flash message partial
jbuechs ddb4e94
show correct product display for user/guest on user products page
jbuechs ab803e5
create line for under navbar
jbuechs 18a9538
style show page
jbuechs 1019cb8
Complete order controller tests, except for create
kedevlin 28ae6f2
style categories browse page
jbuechs 145c7f2
I think we have a working cart
TammyHer 869ee3e
I think we have a working cart
TammyHer a541bec
fixed the routes
TammyHer 9a3dbd3
style product show page
jbuechs d851978
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 08da19f
changed the add to cart route
TammyHer c3b8d7b
remove new from review route
jbuechs 5b6c7b8
remove new from review route
jbuechs 7631d90
Fix bug with flash notice in correct_user method
kedevlin 7415908
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin eac3377
fix add to cart route
jbuechs 555e762
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 7a154eb
Fix bug in application#correct_user
kedevlin 916dc9a
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 6e1e014
the cart looks working, just need to fix the price display and remove…
TammyHer 39a3cfe
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 6629620
remove new view and action for review
jbuechs 5462292
update tests for review form in product show
jbuechs 1459fa9
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 9366ce1
Update orders show view and add presence validations to Order model
kedevlin 7a0b6ce
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 40cdc26
remove item from cart is working
TammyHer 6bd1a1b
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 9b8bdbd
almost done with the cart
TammyHer e48955d
move creating new category form to category list page
jbuechs 0649dbb
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs b14be2e
bugfix on category index page
jbuechs f8f8ecd
Update order controller routes, create link to checkout in carts inde…
kedevlin 56e6bcc
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin ef10859
complete categories test and form errors
jbuechs 8016587
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs ef5a74b
Complete orders#create method
kedevlin cc9dbda
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 8123acf
fix redirect issue with error in review form and update test
jbuechs b8e892f
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 0b1ebee
pull to finish the care with total
TammyHer b34351e
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer a7ce4c5
Update order model specs
kedevlin 25dc8e7
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs d851152
feature user cannot review own product
jbuechs 4f74091
can see the subtotal
TammyHer 2ead3f5
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 08f67b0
Complete orders_controller rspec tests
kedevlin 0d27b03
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 71b90c1
if product is not is stock - you won't be able to add it to the cart
TammyHer 981bd16
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer f807e9d
format new product page
jbuechs 3a10fc5
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 6c5016a
Complete order confirmation page, clear cart when an order is submitted
kedevlin bb04313
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin dd48d34
still canot update quantity in the cart
TammyHer 8c9af2d
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 807137b
Update cart index view to handle empty cart, update cart#destroy to c…
kedevlin 7064e29
create browse by merchant page
jbuechs 0309462
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 8235f0b
Update cart#index
kedevlin c40edcd
update My Cart link in nav bar
kedevlin 969a75b
Update order show view
kedevlin 78569f1
working on user spec. still has bugs
jbuechs a8859dc
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 6266e7c
format merchant order index page
jbuechs e53db8e
fix heading
jbuechs 8db31ab
style cart page
jbuechs 2f31f5d
refactor carts controller
jbuechs 46561a0
created a button for shipped order item- not working yet
TammyHer 75e8664
decrement product stock after purchase
kedevlin 856c4df
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin dd1141d
implement cart update of quantity
jbuechs 5bc6bf1
implement update of quantity in cart
jbuechs 38ada50
you can mark order_item as shipped
TammyHer 98a5ea8
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer cd4a991
you can cancel shippment in order item:
TammyHer 124e1d5
update Back path in order show page
kedevlin ff5eedd
bugfix displaying merchant orders
jbuechs 9ad134d
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 67a724b
add quantity add to cart to product show page
jbuechs 7a89e23
When all the order_items tagged as shipped- the order's status is shi…
TammyHer 8755932
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer e2906b2
style checkout page
jbuechs bbb8cac
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs ad3aab1
format cart index
jbuechs 4c6dd18
update factory for credit card requirements
jbuechs ca99486
made a new route and now a guest/user can cancel the order
TammyHer 47b48c6
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 35db626
create cart rspec
jbuechs 6c2cec9
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 50b0176
bugfix on adding products to cart
jbuechs 0ba15aa
you can see you cancelled orders
TammyHer ec46336
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 9744c89
Update orders index page to meet requirements
kedevlin 8fb3622
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 5cc288c
minor change to navbar
jbuechs 6138cc1
now the product's stock remains the same after cancel an order
TammyHer 80872e4
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 87e01c4
when an order has been cancelled - the user won't be able to mark the…
TammyHer 1bfe048
complete carts controller rspec
jbuechs 717c3f2
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs a3c09b4
remove update from categories controller and route
jbuechs e7a08e3
create test for order model total_cost
jbuechs 8026e78
complete half of order items controller
jbuechs d0b817e
Add filter by order status functionality to order fulfillment page
kedevlin f3517f0
Resolve merge conflict
kedevlin d322140
Complete requirements of order fulfillment page
kedevlin c0a59f4
fix bug in average_rating in user model
jbuechs dfa579e
complete user spec
jbuechs 3514a3a
complete tests for product average methods
jbuechs b876a56
Update orders#index method
kedevlin 7558501
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 021dc73
Update orders#index instance variable order
kedevlin 4704390
bugfix seeding orders
jbuechs 41bf8cd
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 6c1bdc7
edit checkout page
jbuechs f01c180
Update product new/edit form to take dollar value
kedevlin 1711cfb
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 198bc43
delete order items controller, view, spec
jbuechs d2b396a
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs aaad9b6
fix rpsec on order item model
jbuechs ba0697d
working on display only shipped order items
TammyHer c59e5df
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer 1cbd508
guest cannot show user account page
jbuechs bcc0c0a
restore order items controller
jbuechs f79aa0e
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 1bc4833
add orderitems to routes
jbuechs 148a578
configure bullet gem
jbuechs ddf8f79
back to before... deleted everything I did
TammyHer 0c3e279
Update order model rspec
kedevlin 1ca5a59
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin ddac698
implementing bullet getting rid of n+1 queries
jbuechs f0373e4
As a user you can see all your order items that havn't been shipped yet
TammyHer f32b9df
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
TammyHer b8c9d2b
Update order model rspec tests
kedevlin 2c22dcf
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin c09ba24
Update order item migration file
kedevlin 19e1157
remove pry from seeds.rb
kedevlin 8ef3a1d
Update homepage image url
kedevlin b501ef8
remove View Reviews link, add heroku link to README.md
kedevlin 701deb6
optimize page loading
jbuechs 5519b5e
Merge branch 'bullet' into goneby5/master
jbuechs fde6166
style the order fulfillment page
jbuechs 86a3bf1
update order model tests
kedevlin 634cf9f
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 8e0d9bf
Add tests for orders controller
kedevlin ac269d7
Add retire product functionality
kedevlin f00971f
update navbar
jbuechs 85ed05a
change banner
jbuechs 94ae5f6
add styling to order fulfillment page
jbuechs 80e7b81
update some styling
jbuechs 6849afd
style login page
jbuechs 5e74629
style new user form
jbuechs 6d5fc55
hover effect on jumbotron
jbuechs 9887f08
create scrolling transparent navbar
jbuechs 8803981
filter welcome page products by active field
kedevlin e4d1455
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin 180f296
access to /confirmation/ is based on session[:order_id]
kedevlin 7273aad
Disable add to cart button if product is retired
kedevlin 5b971ba
retired products do not show on user products page unless the page ma…
kedevlin 72c3fe1
style order detail page
jbuechs 113e362
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs b0df7b0
edit user update page
jbuechs 43a5a48
Convert time zone to PST
kedevlin 2dce89f
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin d79bed8
style cart page
jbuechs af8d0ec
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 7c57562
style products show page
jbuechs 5c1ded8
minor layout changes
jbuechs cc8a5fe
fix orders controller rspec tests for confirm page
kedevlin 9148ffd
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
kedevlin dbf0fef
fix categories bug
jbuechs bcec833
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs 29caedc
update categories controller
jbuechs 5d61fb1
retired products do not show in categories show or index
kedevlin e1877e5
resolve merge conflict
kedevlin d9cb713
fix transparent hamburger menu
jbuechs fe9387d
Merge branch 'goneby5/master' of github.com:Kedevlin/betsy into goneb…
jbuechs c5ab224
style checkout page
jbuechs dd1a55e
format checkout
jbuechs ca0e769
update readme
jbuechs 266c8d0
Update order_items and orders controller
kedevlin 7cfc29f
resolve merge conflicts
kedevlin 7fbab0b
update the readme file
jbuechs c8ef6df
update if/else in correct_user method
jbuechs 475c6e4
refactor require_login and require_logout to use logged_in? method
jbuechs d086377
refactor add method to dry up if/elsif/else clause
jbuechs ea6bac8
add error message when category not created
jbuechs f3dec1f
delete commented out method
jbuechs b1251d3
delete commented out code
jbuechs 785f420
refactor shipped method to dry up
jbuechs c08d605
dry up index method checking presence of order
jbuechs 6e8c299
remove commented out methods
jbuechs 01f5e03
delete extraneous helper spec files
jbuechs 8a1b375
minor edits to index - remove extra space, fix h5
jbuechs d105910
remove extra links from categories show page
jbuechs b5915e0
remove extra ul
jbuechs af96533
change h5s to h4s
jbuechs b94a7be
change h5s to h4s
jbuechs 61b2bca
remove extra space
jbuechs ba2394b
remove extra logic for whether user is logged in
jbuechs 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
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,23 @@ | ||
[Link to Trello Board](https://trello.com/b/mxIvtRi2/wetsy-planning) | ||
|
||
# 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. | ||
|
||
#### In this project you will cover | ||
|
||
- Core comprehension of: | ||
- Routes | ||
- Controllers | ||
- Models | ||
- Views | ||
- User based application logic | ||
- User authentication | ||
- Agile practices | ||
- Group project ownership | ||
|
||
#### Guidelines | ||
|
||
- 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. | ||
# Wetsy | ||
[w]Etsy is an online store where you can buy or sell any product as long as it has to do with the water. This website was built with Ruby on Rails and a lot of love by Kelly, Tammy, and Jennie. We used Agile practices (stand-up meetings, weekly demos, etc.) to create user stories to complete our project. You can see our [completed Trello board here](https://trello.com/b/mxIvtRi2/wetsy-planning). | ||
|
||
# Accessing the website | ||
You can view the website live at [Wetsy](https://wetsy.herokuapp.com/) | ||
|
||
# Setting up | ||
To set up the project: | ||
1. Clone the project from github | ||
2. Run bundle install | ||
3. Run rake db:seed to seed the database | ||
4. Run rails server and open the website on your localhost in the browser | ||
|
||
# Applying New Concepts | ||
We did a few new things in this project: | ||
- model relationships: has_many, through and has_and_belongs_to_many | ||
- building user authentication from scratch | ||
- using the session hash to store cart and logged in user information | ||
- before_action controller filters for determining which users could view which pages | ||
|
||
# Fun New Gems We Used | ||
- [FactoryGirl](https://github.com/thoughtbot/factory_girl) | ||
- [Bullet](https://github.com/flyerhzm/bullet) |
This file was deleted.
Oops, something went wrong.
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.
I like this Wetsy version of the README! The only thing I would suggest to add at this point is maybe a section with setup instructions, so that people whom would like to use your project will need to know what steps they should take to get going, including cloning and forking.