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

Vampazon - Sassa, Elle, Trish, and Maya (parens) #35

Open
wants to merge 410 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
410 commits
Select commit Hold shift + click to select a range
09fb7c5
change phone datatype in Order model and User model limit to 10
Oct 24, 2016
1a48cb7
completed order conformation page and create order mvc logic. Also ad…
Oct 24, 2016
a1b03ea
add on order confirmation view: order creation time; current status o…
Oct 24, 2016
f1d8bff
Merge pull request #31 from mayawang/mw_cart_feature_completed
ellevargas Oct 24, 2016
af4a7a6
Merge pull request #32 from mayawang/mw_purchase_feature
ellevargas Oct 24, 2016
6dfa49c
Added several articles and links explantions on how to use factories.…
Trishthedish Oct 24, 2016
ebc5cde
added line about env hash to sessions controller
ellevargas Oct 24, 2016
8df5493
Merge pull request #34 from mayawang/trish_factory_girl
ellevargas Oct 24, 2016
94eb72f
added partial to show random photos from each category
RedSquirrelious Oct 24, 2016
c78df6d
partial with logic to greet authenticated users by name
RedSquirrelious Oct 24, 2016
d558bc2
added private random_photo self model that delivers random photos by …
RedSquirrelious Oct 24, 2016
9295ed2
includes call to partials
RedSquirrelious Oct 24, 2016
5bfd2f4
includes styling for photos
RedSquirrelious Oct 24, 2016
a5d97d8
rudimentary success with foundation
RedSquirrelious Oct 24, 2016
45e66d2
removed first name and last name from products, sessions, updated sch…
ellevargas Oct 24, 2016
4729888
adding comment-sections in stylesheet to help with readability
RedSquirrelious Oct 24, 2016
2318b69
updated user ymls to use only one name and corrected call error in us…
ellevargas Oct 24, 2016
53124f4
removed Devise gem
ellevargas Oct 24, 2016
44ad921
There is now a search box rendering on the front index page. You can …
Trishthedish Oct 24, 2016
953a8b1
includes oauth routing
RedSquirrelious Oct 24, 2016
79c2b76
includes routing for oauth
RedSquirrelious Oct 24, 2016
991f362
cleaned up sessions routing
RedSquirrelious Oct 24, 2016
456c9e2
fixed conflicts
ellevargas Oct 24, 2016
8f921ad
fixed merge commits
ellevargas Oct 24, 2016
38c0ced
Merge pull request #35 from mayawang/ev_add_product
ellevargas Oct 24, 2016
e969d62
Merge branch 'master' of github.com:mayawang/Vampazon
ellevargas Oct 24, 2016
b64a496
fixed login link
RedSquirrelious Oct 24, 2016
60709a1
fixed login route
RedSquirrelious Oct 24, 2016
30f6a7e
Resolved conflicts
Trishthedish Oct 24, 2016
7bfdeeb
Merge pull request #36 from mayawang/search_box_test
Trishthedish Oct 24, 2016
0cd2534
Merge branch 'master' of github.com:mayawang/Vampazon
ellevargas Oct 24, 2016
da7138d
bundle install, rake db reset and rake db migrate
ellevargas Oct 24, 2016
96831cb
includes partial views and a button to add new products
RedSquirrelious Oct 24, 2016
ceacd7f
fixed conflicts
RedSquirrelious Oct 24, 2016
0b16a27
fixed mild conflicts. Merge branch 'sk-moar-foundation'
RedSquirrelious Oct 24, 2016
fda8ad9
push damn you
ellevargas Oct 24, 2016
ba34220
Merge pull request #39 from mayawang/ev_edit_products
ellevargas Oct 24, 2016
e509bd7
created user account mvc logic, and display user basic info on user a…
Oct 24, 2016
d1c7a4f
working on making prettier forms
RedSquirrelious Oct 24, 2016
cbd012f
made the links up top work
RedSquirrelious Oct 24, 2016
6f71ae3
Merge pull request #40 from mayawang/sk-prettier-form
RedSquirrelious Oct 24, 2016
f1cda35
save it all
RedSquirrelious Oct 24, 2016
2c68488
cleaned up address form for orders
ellevargas Oct 24, 2016
d23fabd
added product category lookup to application helper, now top bar menu…
RedSquirrelious Oct 24, 2016
dc6e5bf
add mvc logic for show buyer_manage and seller_manage button on user_…
Oct 24, 2016
5159380
Merge pull request #41 from mayawang/sk-fix-menu-button
RedSquirrelious Oct 24, 2016
c01e5e9
why isn't this all going up/?'
RedSquirrelious Oct 24, 2016
02f1dc7
Merge pull request #42 from mayawang/sk-fix-menu-button
RedSquirrelious Oct 24, 2016
2fc4025
removed extra first and last names from orders stuff
ellevargas Oct 24, 2016
d8c6f6e
removed auth from scratch methods to help with readability
RedSquirrelious Oct 24, 2016
869ea2b
removed auth from scratch from create method to improve readability
RedSquirrelious Oct 24, 2016
c7db62f
added random_photo logic to show category photos on homepage (index)
RedSquirrelious Oct 24, 2016
25a2bd7
narrowed orders in schema down to just name
ellevargas Oct 24, 2016
ec61e01
moved all logic to homepage index view
RedSquirrelious Oct 24, 2016
861293d
Merge pull request #43 from mayawang/ev_consolidate_names
ellevargas Oct 24, 2016
0bdaa15
Merge pull request #44 from mayawang/sk-photos-on-homepage
ellevargas Oct 24, 2016
831a1c8
working on buyer_manage page. Show order in different status. backup …
Oct 24, 2016
855f17a
still working on tests
Trishthedish Oct 24, 2016
0bafd87
working on making the photos the right size
RedSquirrelious Oct 25, 2016
b9b497b
limited max-height to one class of photos
RedSquirrelious Oct 25, 2016
1985bd4
trying to use the equalizer
RedSquirrelious Oct 25, 2016
8171ec5
Still working on fixing testins in model order test.
Trishthedish Oct 25, 2016
54b7f80
fixed typo, added import app.css
RedSquirrelious Oct 25, 2016
6ae64fa
replaced weird stylesheet links with the right one
RedSquirrelious Oct 25, 2016
9dcb1ae
fixed class tag to standardize - product_img to product_photo
RedSquirrelious Oct 25, 2016
33d866a
standardized photo class tag
RedSquirrelious Oct 25, 2016
295f91f
more movement
RedSquirrelious Oct 25, 2016
bbc02ac
completed cancel order mvc logic in buyer_manage view
Oct 25, 2016
0540cc5
resytled all buttons on order controller
Oct 25, 2016
28b3605
add user model relation to orders model
Oct 25, 2016
3301d43
completed mvc logic for buyer manage in user account session. show bu…
Oct 25, 2016
1fca07c
new styling
RedSquirrelious Oct 25, 2016
90ae545
styling for home page
RedSquirrelious Oct 25, 2016
c278698
show item not working that great, needs help
RedSquirrelious Oct 25, 2016
66036c1
puts wrapper around greeting
RedSquirrelious Oct 25, 2016
5976108
added class, added h2 heading to name
RedSquirrelious Oct 25, 2016
8c08ea6
broken show product, needs help
RedSquirrelious Oct 25, 2016
909b8b6
Merge pull request #45 from mayawang/sk-right-size-photos
RedSquirrelious Oct 25, 2016
08b5213
resolved merge conflicts
Oct 25, 2016
ac46977
fixed @order.name bug on confirmation page
Oct 25, 2016
a3bb673
added pending_orders/paid_orders/cancelled_orders/completed_orders/ca…
Oct 25, 2016
18e8309
Merge pull request #46 from mayawang/mw_user_manage_account
Oct 25, 2016
dc159a6
Uncommented tests and pair wrote validations with Sassa. Tests are pa…
Trishthedish Oct 25, 2016
2826dde
fixed cart form - checkout now works
ellevargas Oct 25, 2016
9c9521e
fixed bug on checkout page, confirmation path(@order.id)
Oct 25, 2016
5241d17
fixed typo managment to management
Oct 25, 2016
de9e0b1
Merge pull request #48 from mayawang/mw_user_manage_account
Oct 25, 2016
d1e4acf
fixed conflicts
ellevargas Oct 25, 2016
7a9bc60
pushed error code for research
ellevargas Oct 25, 2016
7beab54
working edit and update methods
RedSquirrelious Oct 25, 2016
b76ae93
make form generic for new and edit; added cancel button
RedSquirrelious Oct 25, 2016
85eaaba
fixed bugs on checkout form
Oct 25, 2016
f631b88
link to form partial
RedSquirrelious Oct 25, 2016
7939783
add buttons for edit and view all the stuff
RedSquirrelious Oct 25, 2016
4d560ef
Merge pull request #47 from mayawang/ev_fix_form
ellevargas Oct 25, 2016
b6a2f8f
added delete button, need to work on routing when a product is deleted
RedSquirrelious Oct 25, 2016
53fd1a0
cancel button routes to root path, show seller route breaks
RedSquirrelious Oct 25, 2016
2af2cee
oauth logic with edit and delete buttons
RedSquirrelious Oct 25, 2016
a232f6f
Finished with product_test model
Trishthedish Oct 25, 2016
0fa80db
may want to adjust the show method so it returns nil, Product.find ma…
RedSquirrelious Oct 25, 2016
ab86652
better cancel button'
RedSquirrelious Oct 25, 2016
0511378
not needed after all, per TA
RedSquirrelious Oct 26, 2016
644da19
this is the one
RedSquirrelious Oct 26, 2016
133c02c
Merge pull request #49 from mayawang/sk_tg_product_controller
RedSquirrelious Oct 26, 2016
76d2500
Created several tests more to go.
Trishthedish Oct 26, 2016
3503078
added name, description, category, price, inventory validations
RedSquirrelious Oct 26, 2016
54969ea
changed stylesheet link in head from application.css to application.s…
RedSquirrelious Oct 26, 2016
d70794b
interpolating the seller's name was breaking tests. changed it to 's…
RedSquirrelious Oct 26, 2016
c848ec4
filled in blank tests, update test still not working
RedSquirrelious Oct 26, 2016
c5119fc
filled in some blanks, commented out tests not appropriate to our con…
RedSquirrelious Oct 26, 2016
1a6f51b
because we use some sass, tests required us to have allstylesheet ext…
RedSquirrelious Oct 26, 2016
e84a284
set up for simplecov
RedSquirrelious Oct 26, 2016
5d6e723
bug fix: inventory checking before checkout, and prevent empty checki…
Oct 26, 2016
c93aae9
Show flash message on global template
Oct 26, 2016
0fd5aa5
Update README.md
Oct 26, 2016
fef18ba
Update README.md
Oct 26, 2016
94963a9
Update README.md
Oct 26, 2016
9d468fe
Update README.md
Oct 26, 2016
56e7681
Update README.md
Oct 26, 2016
6be08e5
completed mvc logic for total_revenue and revenue_by_status on seller…
Oct 26, 2016
2be1b1a
completed mvc logic for total order count and order count by status o…
Oct 26, 2016
38e9509
Merge pull request #50 from mayawang/mw_flash_message
RedSquirrelious Oct 26, 2016
94bccd7
Merge branch 'master' of https://github.com/mayawang/Vampazon into mw…
Oct 26, 2016
88acf75
Merge pull request #51 from mayawang/trish_testing3
RedSquirrelious Oct 26, 2016
2e4bbc1
fixed typo
RedSquirrelious Oct 26, 2016
305eaaf
turned back, fixed mistake/?
RedSquirrelious Oct 26, 2016
2072fd4
resolved testing merge, master had more tests, so went with master
RedSquirrelious Oct 26, 2016
87b7d9c
Merge pull request #52 from mayawang/sk-testing-use-simplecov
RedSquirrelious Oct 26, 2016
d546b94
fixed typo that broke the css
RedSquirrelious Oct 26, 2016
7ac081e
Merge pull request #53 from mayawang/sk-fix-typo-on-application-css
RedSquirrelious Oct 26, 2016
8e8baed
Started to make logic within the product controller.Hope to switch it…
Trishthedish Oct 26, 2016
5f0f6d4
Merge remote-tracking branch 'origin' into mw_seller_manage_account
Oct 26, 2016
2b88286
Reviews are working from the show product path page. They are quite m…
Trishthedish Oct 26, 2016
8e29bf1
removed extra class that caused the freaky 3 columns
RedSquirrelious Oct 26, 2016
6250949
Worked on adding a add review button. Also now retaining review. The …
Trishthedish Oct 26, 2016
f738b3f
Merge pull request #54 from mayawang/sk-fix-product-show-page
RedSquirrelious Oct 26, 2016
3fed5dd
removed create new product button, moved to user account page
RedSquirrelious Oct 27, 2016
aa4fa34
made user account link visible based on oauth
RedSquirrelious Oct 27, 2016
86d0bb5
put create new product on this page rather than seller management pag…
RedSquirrelious Oct 27, 2016
b813148
removed delete method, added notes to unused methods, added find_revi…
RedSquirrelious Oct 27, 2016
46bde9a
removed delete review button, added notes to edit product and delete …
RedSquirrelious Oct 27, 2016
5266681
fixed weird column thing
RedSquirrelious Oct 27, 2016
c2f1fec
Merge pull request #56 from mayawang/tg_sk_reviews_controller_no_delete
ellevargas Oct 27, 2016
047682f
Merge pull request #55 from mayawang/sk-add-product-user-account
ellevargas Oct 27, 2016
d4f6f22
added static photos to assets file and created new column for alt id …
ellevargas Oct 27, 2016
956a563
Started to create readme
Trishthedish Oct 27, 2016
4f5214c
completed mvp logic for seller management show order items details by…
Oct 27, 2016
72b8810
made the vampazon logo image and added alt text to every last one of …
ellevargas Oct 27, 2016
90feb46
completed mvc logic for link to order details associated with this or…
Oct 27, 2016
5047b0d
Merge remote-tracking branch 'origin' into mw_seller_manage_account
Oct 27, 2016
a5ee634
Update README.md
Oct 27, 2016
9af9412
had deleted this because it broke tests. can fix that. need this. …
RedSquirrelious Oct 27, 2016
84944cb
fixed color on text on logo image
ellevargas Oct 27, 2016
ef1d950
Added a vampire favicon to our page. It renders at top of tab.
Trishthedish Oct 27, 2016
972154c
Merge pull request #57 from mayawang/ev_accessible
RedSquirrelious Oct 27, 2016
56899a1
resolved merge conflict
Oct 27, 2016
b10f834
Merge pull request #58 from mayawang/mw_seller_manage_account
RedSquirrelious Oct 27, 2016
74c6b59
Merge pull request #59 from mayawang/readme
RedSquirrelious Oct 27, 2016
f8df9ac
Merge pull request #60 from mayawang/sk-undo-show-page-seller
Oct 27, 2016
3d05c05
rake db migrate
ellevargas Oct 27, 2016
019443a
alt_text now works yay
ellevargas Oct 27, 2016
0a57cd7
Merge pull request #61 from mayawang/ev_oopsiwasonmaster
ellevargas Oct 27, 2016
9207636
fixed sytax error in app.css
Oct 27, 2016
6aa4457
resolved merge conflict
Oct 27, 2016
f7710b2
Merge pull request #62 from mayawang/mw_css_sytax_fix
ellevargas Oct 27, 2016
1e74b1d
Updated Gemfile for heroku
Oct 27, 2016
c8d1d90
comment out line 10 of application.rb
Oct 27, 2016
754a46b
missing css syntax
ellevargas Oct 27, 2016
b8cb297
fix syntax in application.css
Oct 27, 2016
981b6ba
Remove integer limits for postgres
Oct 27, 2016
cf0d013
Convert types in seeds
Oct 27, 2016
02a5d0e
Change phone columns to string
Oct 27, 2016
d5ddbf5
Remove unused script tags
Oct 27, 2016
10d55c0
worked on nav
ellevargas Oct 28, 2016
cdad92c
Created favicon vampire
Trishthedish Oct 28, 2016
80d758e
Still trying to figure out favicon
Trishthedish Oct 28, 2016
f3ae1a6
worked on homepage fruitlessly - switching to basic page formatting
ellevargas Oct 28, 2016
b2f7615
Merge branch 'master' of github.com:mayawang/Vampazon
ellevargas Oct 28, 2016
96fc216
Finally figured out why favicon was not persisting on all pages. icon…
Trishthedish Oct 28, 2016
230baa5
cleaned up css and consolidated a few classes on show category view
ellevargas Oct 28, 2016
269307e
no more integer limit 4 bs
ellevargas Oct 28, 2016
4d0cf77
show category pages are all synced up as far as styling
ellevargas Oct 28, 2016
b7dd841
got individual pages working and cleaned up css
ellevargas Oct 28, 2016
01b0a23
omg the all products page looks awesome
ellevargas Oct 28, 2016
265cd49
standardized forms and user account info
ellevargas Oct 28, 2016
478450e
Found clever way to fix decimal issues. Things are tested and working.
Trishthedish Oct 28, 2016
7905710
Merge pull request #65 from mayawang/currency_validation
ellevargas Oct 28, 2016
dd37ee3
working on nav bar and homepage now
ellevargas Oct 28, 2016
45f3699
still working on nav bar and homepage, but atom almost froze :|
ellevargas Oct 28, 2016
04ae252
added two frontpage photos - will work on this tomorrow morning
ellevargas Oct 28, 2016
0e5b8e8
fixed bugs regarding assert_not and factory_girl.rb fixture setting
Oct 28, 2016
c6fd7e0
added dollar signs and minor tweaks
ellevargas Oct 28, 2016
a7d227b
has relationship to reviews
RedSquirrelious Oct 28, 2016
664a4a4
fixed conflicts and removed js stuff from application.html.erb
ellevargas Oct 28, 2016
87377e4
related to user through product, commented out number validations
RedSquirrelious Oct 28, 2016
d2743aa
relates to reviews through products
RedSquirrelious Oct 28, 2016
5b682fd
deleted update, edit, delete tests
RedSquirrelious Oct 28, 2016
672add4
fixed minor change to confirmation page
ellevargas Oct 28, 2016
f4875b3
added name
RedSquirrelious Oct 28, 2016
3aa53d9
Merge pull request #66 from mayawang/ev_yescss
ellevargas Oct 28, 2016
bf3ae27
filled in review yml
RedSquirrelious Oct 28, 2016
77ebf3a
was throwing errors
RedSquirrelious Oct 28, 2016
0dbfd5e
added review testing
RedSquirrelious Oct 28, 2016
47934e1
fixed conflicts
Trishthedish Oct 28, 2016
76b7673
Merge pull request #64 from mayawang/favicon_part2
Trishthedish Oct 28, 2016
2310028
added relationship to reviews
RedSquirrelious Oct 28, 2016
967dfb7
Merge pull request #67 from mayawang/sk-review-testing
RedSquirrelious Oct 28, 2016
e18d1b1
Fixed favicon conflicts
Trishthedish Oct 28, 2016
87d4080
Merge pull request #63 from mayawang/trish_add_favicon
Oct 28, 2016
a4f3c4f
changed front page to clean things up
ellevargas Oct 28, 2016
b847869
fixed through errors by deleting them
RedSquirrelious Oct 28, 2016
f5cfc9d
Merge pull request #69 from mayawang/sk-review-controller-testing
RedSquirrelious Oct 28, 2016
300ac19
added bat image show on average rating.adjusted bat image size, and i…
Oct 28, 2016
35cb0ce
Merge pull request #70 from mayawang/mw_rating_bats_show
RedSquirrelious Oct 28, 2016
06b725f
functional nav but looks messy - saving to try a foundation trick
ellevargas Oct 28, 2016
da3e74b
fixed show conflict, fixed odd typos in order_test .
RedSquirrelious Oct 28, 2016
3d4c384
Fixed the language and some of the formatting issues with read me. I'…
Trishthedish Oct 28, 2016
a3cc6bb
Merge pull request #71 from mayawang/mw_testing_user
RedSquirrelious Oct 28, 2016
be5119c
fixed minor error in rendoring readme
Trishthedish Oct 28, 2016
0499db1
added final missing link to readme
Trishthedish Oct 28, 2016
cbd858a
added proper link
Trishthedish Oct 28, 2016
9d61fa9
Added readme
Trishthedish Oct 28, 2016
575b04e
rendered links properly to our names
Trishthedish Oct 28, 2016
3d479be
make the review title, bat rating, and login user's name show on revi…
Oct 28, 2016
5097736
Merge pull request #72 from mayawang/fixing_readme
Oct 28, 2016
ff0e13f
adjust the previous review position
Oct 28, 2016
f45c93c
add space after review title
Oct 28, 2016
d0f9dfe
Merge pull request #73 from mayawang/mw_user_review
Oct 28, 2016
32bb8bc
everything but the user stuff working in css
ellevargas Oct 28, 2016
a31eea6
bug fixed deleted validations on order model and order_item model
Oct 28, 2016
dcb49db
Merge pull request #74 from mayawang/fix_order_controller
Oct 28, 2016
c47c19a
fixed nav so it looks less crap
ellevargas Oct 28, 2016
4eebe1f
nice as heckkk
ellevargas Oct 28, 2016
0a5c17b
fixed guest review name show for un-logged in guest
Oct 28, 2016
5abc5da
Merge pull request #75 from mayawang/fix_guest_review_name
RedSquirrelious Oct 28, 2016
6749a4c
fixed review name show bug
Oct 28, 2016
66f6e3c
Merge pull request #76 from mayawang/fix_review_guest_name
RedSquirrelious Oct 28, 2016
203d3d4
front page is at version 2
ellevargas Oct 28, 2016
2ba45c1
added cancel button, added button class to submit button
RedSquirrelious Oct 28, 2016
d9fe52a
Merge pull request #78 from mayawang/sk-fix-review-cancel
Oct 28, 2016
edab18f
fixed conflicts
ellevargas Oct 28, 2016
874eea0
fixed conflicts
ellevargas Oct 28, 2016
103a2b0
Merge pull request #77 from mayawang/ev_yescss
ellevargas Oct 28, 2016
ad3bf49
fixed the class button in new review that broke everything
ellevargas Oct 28, 2016
3d20cd5
omg the random images are back yass kween
ellevargas Oct 28, 2016
5466f58
Merge pull request #79 from mayawang/ev_yescss
RedSquirrelious Oct 28, 2016
f78da35
Update README.md
Oct 31, 2016
d2a5873
Update README.md
Oct 31, 2016
e805e99
Update README.md
Nov 30, 2016
e92fe82
Update README.md
Nov 30, 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
228 changes: 23 additions & 205 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,214 +1,32 @@
# bEtsy(Vampazon)
[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.
== README
# Vampazon
Shop till you drop again, at Vampazon! We have a wide array of products to meet all your bloody needs. Minions, Home Decor, dental care, and more! Commence shopping at Vampazon [here](https://vampazon.herokuapp.com/). Vampazon is an e-commerce venue for Vampires and beyond.

## Project Learning Goals
- Core comprehension of:
- Routes
- Controllers
- Models
- Views
- User based application logic
- User authentication
- Agile practices
- Feature branch management with Git
- 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
### Authors
- [Elle Vargas](https://github.com/ellevargas)
- [Maya Wang](https://github.com/mayawang)
- [Sassa Kitka](https://github.com/RedSquirrelious)
- [Trish Griego](https://github.com/Trishthedish)

### Restrictions
- Do not use gems for user authentication (such as Devise)
- You must use oAuth for user authentication.
### Contribution
All authors are students at [Ada Developers Academy](http://adadevelopersacademy.org/)

## 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. Have one person on your team fork/clone the project master as per usual
1. Add all other team members as collaborators
1. Each team member should clone the repo to their computer
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. Review the User Stories below and create Trello tasks to represent them
1. Slack your team name, app name, and link to your trello board to your Project Manager
### Versions
- Rails 4.2.6
- Ruby 2.3.1p112

## Expectations
Build an online system for listing, selling, reviewing, and buying a wide variety of products listed by multiple merchants.
### Built with
* [Foundation](http://foundation.zurb.com/) - The CSS framework
* [OAuth](https://github.com/omniauth/omniauth) - OmniAuth is a library that standardizes authentication for web applications. Project only connected to github authorization.
* [Rails](http://guides.rubyonrails.org/) - is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages
* [factory_girl](https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md) - Allows you to create templates for valid and re-usable objects. They were created in response to fixtures. Helpful for creating flexible, semantic tests. Project tester took lots of [notes](notes_on_factory_girl_rails_use.md) on implementation.

### General Requirements
- Unit tests and/or specs for
- Controllers
- Models
- Routes
- Test code coverage (using SimpleCov - remember me!)
- 90% for all controller and model classes
### Best Practices/key take aways.
- More to come!

### User Stories
#### 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 using OAuth
- Every merchant must have a username
- Sign in to my merchant account using OAuth
## Assignment Details

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

---

**[customized]**
As a signed-in user, I can see:

- User Account that contains basic User Information;
- User Account that has Buyer Management and Seller Management Panel;
- In Buyer Management Panel, a list of all orders of the current logged in User(buyer);
- Each order linked to its order confirmation page, with detail information;
- Listing order's id#, creation time, total price, a CANCEL button;
- In Buyer Management Panel, the order can be cancelled. After pushing CANCEL button, the order status changed to "cancel".
- In Buyer Management Panel, filter orders displayed by status(pending, paid, completed, cancelled)

---

**[refactored]**
- Total Revenue of all order items
- Total Revenue by status
- Total number of order items
- Total number of order items)by status
- A list of **order items** sold by me:
- Filter **order items** displayed by status
- Link to each individual order:
- 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
- The current status of the order item ("pending", "paid", "fulfilled", "cancelled")
- A button to transition the order item to marked as "ship", where order item status changed to "fulfilled"
- The order# that associated with this order item:
- View the 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:

#### Merchant
- Username must be present
- Username must be unique
- Email Address must be present
- Email Address must be unique

#### 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, as well as the team name and the names of all members.

## 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
1. The technical decisions and implementation
1. Every team member's understanding of the underlying technical structures.
- Guidelines, Expectations, and learning goals can be found [here](https://github.com/Ada-C6/betsy).
- Also found within this repo [here](project_guidelines.md)
35 changes: 0 additions & 35 deletions README_vampazon.md

This file was deleted.

Binary file added app/assets/images/vamp_favicon.ico
Binary file not shown.
20 changes: 17 additions & 3 deletions app/assets/stylesheets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ img.logo {
font-size: 1.25rem;
}


img.frontpage {
float: center;
display: inline-block;
Expand Down Expand Up @@ -107,6 +106,21 @@ img.product_photo {
list-style: none;
}

#product-navigation {
text-align: center;
.bat_rating {
width: 18%;
height: 18%;
}

.bat_rating_small {
width: 10%;
height: 10%;
}

.review_box {
border-top-style: double;
/*border-bottom-style: double;*/
}

.review_title{
color: darkred;
}
8 changes: 7 additions & 1 deletion app/controllers/reviews_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ def new
def create
@product = Product.find(params[:id])
@review = Review.create(review_params)
@review.title = params[:review][:title]
@review.description = params[:review][:description]
@review.rank = params[:review][:rank]


@review.product_id = @product.id
@review.user_id = session[:user_id]

if session[:user_id]
@review.user_id = session[:user_id]
@review.name = User.find(session[:user_id]).name
end

if @review.save
redirect_to show_products_path(@product.id)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def edit
def update
@my_user = User.find{ params[:id].to_i }
@params = params
@my_user.fname = params[:user][:name]
@my_user.name = params[:user][:name]
@my_user.email = params[:user][:email]
@my_user.street_address = params[:user][:street_address]
@my_user.city = params[:user][:city]
Expand Down
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ApplicationHelper
def get_product_categories
Product.uniq.pluck(:category)
end
Product.uniq.pluck(:category)
end
end
5 changes: 5 additions & 0 deletions app/models/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ class Order < ActiveRecord::Base
belongs_to :user
has_many :order_items



def total_price
return self.order_items.inject(0) {|sum, order_item | sum + order_item.total_price }
end



end
6 changes: 4 additions & 2 deletions app/models/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ class Product < ActiveRecord::Base
belongs_to :user
has_many :orders
has_many :order_items, through: :orders
has_many :reviews

validates :name, :description, :category, presence: true

validates :price, presence: true, numericality: {:greater_than => 0}

validates :inventory, presence: true, numericality: {:greater_than_or_equal_to => 0}




def average_rating
reviews = Review.where(:product_id => self.id)
return reviews.average(:rank)
Expand Down
6 changes: 5 additions & 1 deletion app/models/review.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class Review < ActiveRecord::Base
belongs_to :product
belongs_to :user
# validates :rank, presence: true, only_integer: true, :inclusion => 1..5, message: "only allows integers 1-5"
validates :rank, presence: true
# , only_integer: true, :inclusion => 1..5
#, message: "only allows integers 1-5"


end
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<%= favicon_link_tag 'vamp_favicon.ico' %>
<title>Vampazon</title>
<%= stylesheet_link_tag "application.css" %>
</head>
Expand Down
Loading