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

Swagrid/master #15

Open
wants to merge 337 commits into
base: swagrid/master
Choose a base branch
from
Open
Show file tree
Hide file tree
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 Dec 10, 2015
f30dfaa
Adding placeholder button for checkout and subtotal
brittanykohler Dec 10, 2015
0466a82
Merge pull request #2 from wesleywillis/swagrid/cart
brittanykohler Dec 10, 2015
5ea1ab8
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 10, 2015
7aab9c0
added erd and font-awesome gems
emgord Dec 10, 2015
785e0f7
added spec and valdiations for order items
emgord Dec 10, 2015
3658390
added spec and validations for reviews
emgord Dec 10, 2015
9d46f7d
Fixed error that occured when adding item to cart that was not alread…
brittanykohler Dec 10, 2015
28f1b84
added validates presence of order items to Order, not sure how to test
emgord Dec 10, 2015
c5d9349
Wrote first rspec test for order_items_controller
brittanykohler Dec 10, 2015
4429411
fixed reviews params per charles' recommendation
rmtolmach Dec 10, 2015
90df034
Trying to add more tests to order items controller
brittanykohler Dec 10, 2015
4748583
Changing styling for image on product show page
brittanykohler Dec 10, 2015
bc8211f
added relationships so orders can be accessed through merchants
emgord Dec 10, 2015
028aff9
Merge pull request #3 from wesleywillis/swagrid/emily
wesleywillis Dec 10, 2015
ae05ce5
Added three excellent tests for create method in order_items controller
brittanykohler Dec 10, 2015
7a9cb6b
wrote tests for logging in
emgord Dec 10, 2015
a3135e7
Merge branch 'swagrid/login' of github.com:wesleywillis/betsy into sw…
emgord Dec 10, 2015
7f3c2c4
created view for new session and started controller methods for sessions
rmtolmach Dec 10, 2015
9b89928
fixed test
emgord Dec 10, 2015
0a09acb
Adding rspec tests for destroy method in order items controller
brittanykohler Dec 11, 2015
21dd94d
add table that displays orders included specific merchant's products
yourFriendWes Dec 11, 2015
11e8df2
Adding tests for update method in order items controller
brittanykohler Dec 11, 2015
66e5251
merchants can login
rmtolmach Dec 11, 2015
cad896d
Changing cart method to orders#cart rather than orders#show, also put…
brittanykohler Dec 11, 2015
a109b1f
Centering image on product show page
brittanykohler Dec 11, 2015
af74f55
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 11, 2015
49b18bf
most tests for login and login functionality
rmtolmach Dec 11, 2015
f5d5f53
Merge pull request #5 from wesleywillis/swagrid/login
rmtolmach Dec 11, 2015
6994592
Merge in branch swagrid/cart
brittanykohler Dec 11, 2015
62baf07
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 11, 2015
d6a8da3
added name to home page if logged in, and only shows delete and edit …
emgord Dec 11, 2015
fd0fa4b
merchant can't review own products
emgord Dec 11, 2015
26e9cee
Updating categories on nav and making title on products index page dy…
brittanykohler Dec 11, 2015
e292350
Changing font, adding CSS to home page, and adding dropdown to nav fo…
brittanykohler Dec 11, 2015
1de51e1
Adding favicon
brittanykohler Dec 11, 2015
800e97c
Merge branch 'swagrid/login' into swagrid/master
emgord Dec 11, 2015
aada7e8
merchant dropdown is now inline
rmtolmach Dec 11, 2015
3f6e096
merging in login branch
emgord Dec 11, 2015
f8998e5
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 11, 2015
a19e4fa
added guest user
emgord Dec 11, 2015
cd5a643
guest fixed
emgord Dec 11, 2015
f1a1791
Updating margin for nav links
brittanykohler Dec 11, 2015
04c00d0
Changing the order of categories on nav
brittanykohler Dec 11, 2015
ad32a55
must be logged in to view merchant show page
emgord Dec 11, 2015
4cf6979
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 11, 2015
de6771f
fixed so when not logged in can still view product show page
emgord Dec 11, 2015
47e99a3
login button shows if not logged in, logout button shows if logged in
emgord Dec 11, 2015
4e4500d
Updating some styling on the cart page
brittanykohler Dec 11, 2015
6d4242d
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 11, 2015
6f37779
Fixing class for quantity input on cart page, as it was affecting inp…
brittanykohler Dec 11, 2015
a29ed7f
required simplecov
rmtolmach Dec 11, 2015
3fc1bdd
Adding link to add a product on merchant show page
brittanykohler Dec 11, 2015
4bfd286
Commenting out validation for order.rb (must have one order_item) and…
brittanykohler Dec 11, 2015
77ef143
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 11, 2015
abc6a7b
troubleshooting login
emgord Dec 11, 2015
440a476
merge conflicts fix
emgord Dec 11, 2015
a8d0cf3
add feature to show count of orders by status on merchant show page
yourFriendWes Dec 11, 2015
c855337
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 11, 2015
08206d1
Fixing routes for orders (changing it from order to orders), removing…
brittanykohler Dec 12, 2015
1639604
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 12, 2015
1c27103
Adding rspec tests for orders controller create method. Commenting ou…
brittanykohler Dec 12, 2015
9923cd4
Commenting out bits of code that I don't think are ever reached and a…
brittanykohler Dec 12, 2015
6a5f8f0
Just kidding, uncommenting out code in application controller, it was…
brittanykohler Dec 12, 2015
f75c74b
logout function added
emgord Dec 12, 2015
a56a82c
added logged_in? and redirect if logged in
emgord Dec 12, 2015
36418dd
merchant can only view own page, and must be logged in
emgord Dec 12, 2015
b8f7291
fixed indentation on merchant controller
emgord Dec 12, 2015
3d199ea
fixed conflicts merging in logout page
emgord Dec 12, 2015
c5fcfa3
Merge pull request #8 from wesleywillis/swagrid/logout
emgord Dec 12, 2015
f9a026b
Trying to add validations for order item quantity, but they aren't wo…
brittanykohler Dec 12, 2015
68764fc
Writing a better description for error in quantity validation in comm…
brittanykohler Dec 12, 2015
253b1b0
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 12, 2015
cefcd88
added validation that order must have order items if paid, complete o…
emgord Dec 12, 2015
5b54f43
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 13, 2015
786962f
reviews controller spec not working.
rmtolmach Dec 13, 2015
7bf4453
fix bugs in merchant show page
yourFriendWes Dec 13, 2015
b8be364
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 13, 2015
a14fad2
Adding validation and error message - user cannot add more items to c…
brittanykohler Dec 13, 2015
481c130
Adding error messages when user tries to add more items to cart than …
brittanykohler Dec 13, 2015
13c1a87
worked unsuccessfully on sorting by status
yourFriendWes Dec 13, 2015
f546c3b
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 13, 2015
5d0fd16
Fixed rspec tests for order items controller
brittanykohler Dec 13, 2015
7cbced6
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 13, 2015
edabae9
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 13, 2015
7dc078d
Got order items controller spec to 100% coverage
brittanykohler Dec 13, 2015
9701394
add feature to filter orders by status
yourFriendWes Dec 13, 2015
6df0c67
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 13, 2015
99849e5
Adding files for checkout functionality-- not yet executed
brittanykohler Dec 13, 2015
8b1de0f
add status column to order_items table
yourFriendWes Dec 13, 2015
342aa77
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 13, 2015
cb4533f
add shipped? method to order items
yourFriendWes Dec 13, 2015
031c4c6
reviews controller spec working
rmtolmach Dec 14, 2015
d0833db
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 14, 2015
9c4f2af
worked on product controllers
emgord Dec 14, 2015
c048886
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 14, 2015
91ad507
css on reviews page. awesome
rmtolmach Dec 14, 2015
adce5d4
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 14, 2015
b6b384c
add method and button for merchant to mark items shipped
yourFriendWes Dec 14, 2015
fc9388c
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 14, 2015
5671ad4
move order status filter to table header
yourFriendWes Dec 14, 2015
be98338
move add product button and add non-functioning button when items hav…
yourFriendWes Dec 14, 2015
89c52df
page to become a merchant created
rmtolmach Dec 14, 2015
361c238
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 14, 2015
bb3484b
Updated order model to include all necessary columns for checkout for…
brittanykohler Dec 14, 2015
65ed750
new merchant can be created
rmtolmach Dec 14, 2015
41aaf0e
products controller working, updated seed data
emgord Dec 14, 2015
8ee9579
Adding update method to orders controller
brittanykohler Dec 14, 2015
918f93c
Changing update method to confirmation method, creating confirmation …
brittanykohler Dec 14, 2015
8f1acaf
added restrictions on products if logged in/out, with tests
emgord Dec 14, 2015
a506957
errors show up if merchant tries to create an accout but already has one
rmtolmach Dec 14, 2015
3362168
add merchant specs for logged in actions
yourFriendWes Dec 14, 2015
145812b
Adding method to update inventory once order is submitted
brittanykohler Dec 14, 2015
02c5657
product spec is the best ever
emgord Dec 14, 2015
81bf526
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 14, 2015
840f642
Updating centering of images on home page
brittanykohler Dec 14, 2015
a5423dd
add method to mark order as compelte when all items ship
yourFriendWes Dec 14, 2015
01e9d42
create test working for merchants controller
rmtolmach Dec 14, 2015
3e00f9a
one more merchant test passes. renders a new page on error
rmtolmach Dec 14, 2015
ffdc4ec
add order show page and wrote method to restrict view to merchants it…
yourFriendWes Dec 14, 2015
cf2ba3c
Adding very basic validation for checkout form, still need to update …
brittanykohler Dec 14, 2015
4b6b0d1
Better messages now for errors in checkout form
brittanykohler Dec 14, 2015
f7bcba8
merchants cannot edit, delete or create products for other merchants
emgord Dec 14, 2015
71bb70b
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 14, 2015
a21b4fd
two lines of css
rmtolmach Dec 15, 2015
709009a
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 15, 2015
0c544e2
Adding numericality validations for checkout form
brittanykohler Dec 15, 2015
7047b85
created merchant view page to edit manage all products
emgord Dec 15, 2015
4fcb998
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 15, 2015
e543642
merchant can update products from product index page
emgord Dec 15, 2015
aae1566
add method for fake admin to cancel order
yourFriendWes Dec 15, 2015
7155c5c
Adding errors when a customer tries to check out and another customer…
brittanykohler Dec 15, 2015
78acf43
Deleting some commented out code
brittanykohler Dec 15, 2015
b99dca2
Merge branch 'swagrid/checkout' into swagrid/master
brittanykohler Dec 15, 2015
85ed854
Fixing merge issues, merging in checkout branch
brittanykohler Dec 15, 2015
8b099ce
Fixing rspec tests for orders controller spec show method
brittanykohler Dec 15, 2015
23deac4
dropup to edit own merchant's products
emgord Dec 15, 2015
2097dab
Merge pull request #11 from wesleywillis/swagrid/productindex
emgord Dec 15, 2015
6d2fbac
retire toggles between true and false. new route for retire
rmtolmach Dec 15, 2015
f210dc4
merge conflicts fixed
rmtolmach Dec 15, 2015
fe5561e
fix bugs caused by new migration on order show page
yourFriendWes Dec 15, 2015
d159c22
fix bug in merchant show- filtered views now show accurate total orde…
yourFriendWes Dec 15, 2015
f004a31
Adding rspec tests for confirmation method in orders controller
brittanykohler Dec 15, 2015
9c983da
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 15, 2015
036d4d9
retire funtionality for product show pare and home index page
rmtolmach Dec 15, 2015
8d87389
add select multiple categories funtion to product forms
yourFriendWes Dec 15, 2015
f5ff9e2
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 15, 2015
47cb692
100% coverage for orders controller spec
brittanykohler Dec 15, 2015
b3ea177
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 15, 2015
f762b09
merchant can add new categories
emgord Dec 15, 2015
b3f4a84
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 15, 2015
116b7af
form collection checkbox added for product categories
emgord Dec 15, 2015
49c8d93
spec for category model
emgord Dec 15, 2015
e9d2b71
category save and add another goes to category new page
emgord Dec 15, 2015
76776df
errors show up if incorrect input for categories
emgord Dec 15, 2015
cf0ba36
update new category form"
emgord Dec 15, 2015
b76b828
retiring products fully functional
rmtolmach Dec 15, 2015
516848a
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 15, 2015
515835d
added category selection for new and updated products
yourFriendWes Dec 16, 2015
6f5e4df
Fixing some of the order_item rspec tests
brittanykohler Dec 16, 2015
0dbac46
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 16, 2015
6de7aad
Adding required info to confirmation page
brittanykohler Dec 16, 2015
d34934b
Centering checkout form
brittanykohler Dec 16, 2015
9f6c8f3
controller edits for retire
rmtolmach Dec 16, 2015
548f362
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 16, 2015
2208d65
fix bug that caused revenue by status to print multiple times on merc…
yourFriendWes Dec 16, 2015
45c463a
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 16, 2015
089e9ae
checked off completed tasks on README, fixed products controller spec…
emgord Dec 16, 2015
371a95c
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 16, 2015
efd759e
fixed order item specs
emgord Dec 16, 2015
d09e58b
Updating styling on order show page
brittanykohler Dec 16, 2015
36f0a9d
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 16, 2015
90d1f15
fix shipped method so that only paid items can ship
yourFriendWes Dec 16, 2015
a2e89fe
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 16, 2015
5ff4a63
delete 'complete?' method in order.rb and move logic to shipped metho…
yourFriendWes Dec 16, 2015
fb3f490
added default value for retire column
rmtolmach Dec 16, 2015
4e01a07
Updating nav bar on home page to show additional categories as dropdown
brittanykohler Dec 16, 2015
a4b0c59
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 16, 2015
ddf2863
retire turns into activate when product is retired
rmtolmach Dec 16, 2015
98f1b81
fixed merge conflict in products controller spec
rmtolmach Dec 16, 2015
ab212bb
commented out migration for order items
rmtolmach Dec 16, 2015
01ae4c2
Adding search bar to nav
brittanykohler Dec 16, 2015
66fa3ad
Fixing merge issues in product controller
brittanykohler Dec 16, 2015
ad7ef7a
carousel started
emgord Dec 16, 2015
31f4bbc
carousel working
emgord Dec 16, 2015
1088c89
Adding description to search method, now user can find items with key…
brittanykohler Dec 16, 2015
f78ba8a
moved caption under images in carousel
emgord Dec 16, 2015
ccb1a85
Adding rspec tests for search method in product model
brittanykohler Dec 16, 2015
6fe2fc4
spec for retire working
rmtolmach Dec 16, 2015
3aa02fc
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 16, 2015
08e2db5
add redirects if unauthorized user tries to access order show
yourFriendWes Dec 16, 2015
f9be259
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 16, 2015
9bd5f75
Adding tests for order items controller
brittanykohler Dec 17, 2015
b88c859
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 17, 2015
7e7d179
grey arrows, centered captions
emgord Dec 17, 2015
db22a00
Merge branch 'carousel/master' into swagrid/master
emgord Dec 17, 2015
28bf991
fixed merge conflicts for carousel addition
emgord Dec 17, 2015
cb41de4
css missing } after merge, added back in
emgord Dec 17, 2015
ef35e49
more seed data
rmtolmach Dec 17, 2015
1c010cc
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 17, 2015
691eaad
Centering titles and buttons, adding some styling to dashboard, but s…
brittanykohler Dec 17, 2015
cac6b43
Additional centering, some styling to product show page
brittanykohler Dec 17, 2015
0d5bf72
maybe fixed seeds
rmtolmach Dec 17, 2015
78dd2bd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 17, 2015
f9e25eb
seeds actually working. Damn validations.
rmtolmach Dec 17, 2015
f2c42b9
Updating number of categories on nav bar, adding new category nav bar…
brittanykohler Dec 17, 2015
6b40c37
'Reviews' doesn't show up if there are no reviews
rmtolmach Dec 17, 2015
326d625
add flash errors when unauthorized viewer tries to see order summary …
yourFriendWes Dec 17, 2015
02f2368
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 17, 2015
f297cee
merchant cannot log in or create new merchant if already logged in
emgord Dec 17, 2015
c0c0f01
removed link to sign up to be a merchant if already logged in
emgord Dec 17, 2015
248f159
Updating checkout button
brittanykohler Dec 17, 2015
7340c39
Fixing order items controller specs - product name must now be unique…
brittanykohler Dec 17, 2015
cc39e99
delete commented out things from merchant controller spec
emgord Dec 17, 2015
e6cc36e
Merge pull request #13 from wesleywillis/swagrid/loginrestrict
emgord Dec 17, 2015
08f9ac5
All tests for order items controller now pass
brittanykohler Dec 17, 2015
01475c7
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 17, 2015
cbabcca
fixed carouselgit add .
emgord Dec 17, 2015
0d0a359
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
emgord Dec 17, 2015
32fbb50
add redirect and error to prevent merchant from leaving review on own…
yourFriendWes Dec 17, 2015
bfc3bd8
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
yourFriendWes Dec 17, 2015
efd03d2
add order validation so customer cannot enter expired gringott's card
yourFriendWes Dec 17, 2015
e6a6faa
deleted last pushed validation in order.rb
yourFriendWes Dec 17, 2015
d79a306
one test that isn't passing
rmtolmach Dec 17, 2015
e2e49bd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 17, 2015
d8fa529
Updating show method test for orders controller
brittanykohler Dec 17, 2015
1fdd8fd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
brittanykohler Dec 17, 2015
e38d62d
Updating validation test for order item model
brittanykohler Dec 17, 2015
60b855b
working on navbar
emgord Dec 17, 2015
7301d21
Fixing review create method
rmtolmach Dec 18, 2015
8a2f962
changed bootstrap classes to fix navbar
emgord Dec 18, 2015
a2b5ab5
Merge pull request #14 from wesleywillis/swagrid/nav
emgord Dec 18, 2015
4ab9693
Fixing search function to be case insensitive
brittanykohler Dec 18, 2015
d886fc3
reviews controller specs working
rmtolmach Dec 18, 2015
2c86f4b
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 18, 2015
bc5be5c
more nav bar fixes
emgord Dec 18, 2015
c25c25d
Adding black buttons everywhere
brittanykohler Dec 18, 2015
1abf8b8
Resolving merge conflicts in application scss file
brittanykohler Dec 18, 2015
4944b19
Fixing missing bracket in css file
brittanykohler Dec 18, 2015
22d9078
Created partial for category nav
brittanykohler Dec 18, 2015
ac10c9e
nothing
rmtolmach Dec 18, 2015
2d6b8cd
Merge branch 'swagrid/master' of github.com:wesleywillis/betsy into s…
rmtolmach Dec 18, 2015
42fc4f9
small fixes
rmtolmach Dec 18, 2015
7406eab
order_items time fixed for heroku
rmtolmach Dec 18, 2015
ea01ec8
changed production.rb line to false
rmtolmach Dec 18, 2015
347cbac
fixed error on order_controller show page
rmtolmach Dec 18, 2015
132ddef
uddated readme
rmtolmach Dec 19, 2015
af7c223
retricted so merchants cannot retire other merchant's products, and m…
emgord Feb 16, 2016
a760ae5
fixed merge conflict
emgord Feb 16, 2016
ad4d572
renders categories when editing products and doesn't save
emgord Feb 19, 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
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
betsy
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.2.3

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. 👍

16 changes: 14 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
Expand All @@ -24,17 +23,30 @@ gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
#gem 'bcrypt', '~> 3.1.7'
gem 'bcrypt', '~> 3.1.7'

gem 'bootstrap-sass', '~> 3.3.6'
gem "font-awesome-rails"

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

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :production do
gem 'pg'
end

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'sqlite3'
gem 'byebug'
gem 'better_errors'
gem 'rspec-rails' #for testing
gem 'simplecov', require: false
gem "rails-erd"
gem 'pry'
end

group :development do
Expand Down
61 changes: 61 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,23 @@ GEM
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.3)
autoprefixer-rails (6.1.2)
execjs
json
bcrypt (3.1.10)
better_errors (2.1.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2)
byebug (8.2.1)
choice (0.2.0)
coderay (1.1.0)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
Expand All @@ -50,8 +63,12 @@ GEM
coffee-script-source (1.10.0)
concurrent-ruby (1.0.0)
debug_inspector (0.0.2)
diff-lcs (1.2.5)
docile (1.1.5)
erubis (2.7.0)
execjs (2.6.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 All @@ -67,12 +84,18 @@ GEM
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.3)
multi_json (1.11.2)
nokogiri (1.6.7)
mini_portile2 (~> 2.0.0.rc2)
pg (0.18.4)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
Expand All @@ -93,6 +116,11 @@ GEM
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-erd (1.4.4)
activerecord (>= 3.2)
activesupport (>= 3.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
railties (4.2.5)
Expand All @@ -102,6 +130,24 @@ GEM
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rdoc (4.2.0)
rspec-core (3.4.1)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
ruby-graphviz (1.2.2)
sass (3.4.19)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
Expand All @@ -112,6 +158,12 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simplecov (0.11.1)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slop (3.6.0)
spring (1.5.0)
sprockets (3.5.1)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -141,13 +193,22 @@ PLATFORMS
ruby

DEPENDENCIES
bcrypt (~> 3.1.7)
better_errors
bootstrap-sass (~> 3.3.6)
byebug
coffee-rails (~> 4.1.0)
font-awesome-rails
jbuilder (~> 2.0)
jquery-rails
pg
pry
rails (= 4.2.5)
rails-erd
rspec-rails
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simplecov
spring
sqlite3
turbolinks
Expand Down
217 changes: 15 additions & 202 deletions README.md
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.
Copy link

Choose a reason for hiding this comment

The 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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is always a good thing to include in your README file!

Binary file added app/assets/images/dobby.png
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/down_arrow.gif
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/up_arrow.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading