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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
13 changes: 12 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ gem 'bootstrap-sass', '~> 3.3.5'

gem 'simplecov', :require => false, :group => :test

gem 'will_paginate'

gem "font-awesome-rails"

# Use Unicorn as the app server
# gem 'unicorn'

Expand All @@ -40,6 +44,11 @@ group :production do
gem "pg"
end

group :test do
gem 'shoulda-matchers', '~> 3.0'
gem "factory_girl_rails", "~> 4.0"
end

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
Expand All @@ -59,5 +68,7 @@ group :development do
gem "binding_of_caller"

# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'sqlite3'

gem 'bullet'
end
21 changes: 20 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ GEM
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2)
bullet (4.14.10)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.9.0)
byebug (8.2.1)
coderay (1.1.0)
coffee-rails (4.1.0)
Expand All @@ -66,6 +69,13 @@ GEM
docile (1.1.5)
erubis (2.7.0)
execjs (2.6.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
font-awesome-rails (4.5.0.0)
railties (>= 3.2, < 5.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
Expand Down Expand Up @@ -151,6 +161,8 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-matchers (3.0.1)
activesupport (>= 4.0.0)
simplecov (0.11.1)
docile (~> 1.1.0)
json (~> 1.8)
Expand All @@ -176,11 +188,13 @@ GEM
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
uniform_notifier (1.9.0)
web-console (2.2.1)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
will_paginate (3.0.7)

PLATFORMS
ruby
Expand All @@ -190,8 +204,11 @@ DEPENDENCIES
better_errors
binding_of_caller
bootstrap-sass (~> 3.3.5)
bullet
byebug
coffee-rails (~> 4.1.0)
factory_girl_rails (~> 4.0)
font-awesome-rails
jbuilder (~> 2.0)
jquery-rails
pg
Expand All @@ -200,12 +217,14 @@ DEPENDENCIES
rspec-rails
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
shoulda-matchers (~> 3.0)
simplecov
spring
sqlite3
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
will_paginate

BUNDLED WITH
1.10.6
1.11.1
230 changes: 23 additions & 207 deletions README.md
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
Copy link

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.

[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)
28 changes: 0 additions & 28 deletions README.rdoc

This file was deleted.

Binary file added app/assets/images/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/banner2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/concrete_seamless.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading