Rails e-commerce website. The site is devoted to selling mini-stuff!
little_shop's Introduction
little_shop's People
Forkers
jdconrad89little_shop's Issues
Admin Orders
Single vs. Multiple Item Categories
Should item belong to single or multiple categories?
Fix redirect from featured items (home) to items index
create Category view with items
change button color for user dashboard
Admin user experience?
Admin user experience?
create Items Controller
Create seed data for users and user orders
Adjust item qty in cart
Fix double flash on cart page
Admin views an individual order
Add cart checkout functionality
Admin User Dashboard
category path
add "remove" button to cart
password confirmation test--get it to pass
create items model
add a flash message when removing item from cart
create items seed file
create Category resource nest items
Viewing past orders
Will artifically seed order history for a given user, then test checkout and order functionality from there.
Background: An existing user that has multiple orders
As an Authenticated User
When I visit "/orders"
Then I should see all orders belonging to me and no other orders
body: >
Background: An existing user that has one previous order
As an authenticated user
When I visit "/orders"
Then I should see my past order
And I should see a link to view that order
And when I click that link
Then I should see each item that was order with the quantity and line-item subtotals
And I should see links to each item's show page
And I should see the current status of the order (ordered, paid, cancelled, completed)
And I should see the total price for the order
And I should see the date/time that the order was submitted
If the order was completed or cancelled
Then I should see a timestamp when the action took place
Admin cannot modify users
whiteboard first user stories
create Category table
[3:32] You need to choose one of 21 or 22 to complete. 20 was purposely left out because it's pretty much an extension [3:33] Also be aware that card 17 might not make a ton of sense because no user can edit their own data so an admin wouldn't be able to either
create category model
Ask Sal/Casey about needing to click_button "Add to Cart" twice in tests to get item to sucessfully be added to cart
Add User login/authentication functionality
Sexy dropdown for login is ideal. Need to do some research first. (Timebox!) Really want to have a way to visually stay on the home page. Will redirect to /login on submit. Add flash message "Welcome user!" on login/signup.
As a visitor
When I visit "/"
Then I should see a link for "Login"
And when I click "Login"
And I should be on the "/login" page
I should see a place to insert my credentials to login
And I should see a link to "Create Account"
As a visitor
When I visit "/login
And when I click link "Create Account"
And I fill in my desired credentials
And I submit my information
Then my current page should be "/dashboard"
And I should see a message in the navbar that says "Logged in as SOME_USER"
And I should see my profile information
And I should not see a link for "Login"
And I should see a link for "Logout"
REFACTORING/REVIEW LIST
- Refactor OrderItemsController, Orders, Sessions, Users by extracting methods and pushing logic down the stack
bootstrap layout, sign up page, home, user profile, items index
Add guest user functionality
Add login/logout logic to application and buttons to cart.
As a visitor when I have items in my cart
And when I visit "/cart"
I should not see an option to "Checkout"
I should see an option to "Login or Create Account to Checkout"
After I create an account
And I visit "/cart
Then I should see all of the data that was there when I was not logged in
When I click "Logout"
Then I should see see "Login"
And I should not see "Logout"
Admin edits an item #22 either/or
admin viewing items #21 either/or
Admin log ins
create Items table
write test for dashboard
test
fix links on categories page
create category controller
Authenticated User Security
Background: An authenticated user
As an Authenticated User
I cannot view another user's private data (current or past orders, etc)
I cannot view the administrator screens or use admin functionality
I cannot make myself an admin
create routes of items and categories
Unauthenticated user (guest) security
issueFourteen:
title: Unauthenticated users security
body: >
Background: An unauthenticated user and their abilities
As an Unauthenticated User
I cannot view another user's private data, such as current order, etc.
I should be redirected to login/create account when I try to check out.
I cannot view the administrator screens or use administrator functionality.
I cannot make myself an administrator.
Feedback
-
i like that you're commenting on PR's. i'd like to see even more commits!
-
the method below is the same as just calling
category.items
:
def find_items_associated_with_category
items.where(@category)
end
in your items_controller
, you can call @items = @category.items
rather than needing to define the above method ๐
-
you currently have
cart_total
defined in yourApplicationHelper
. wouldn't this method be more appropriate in theCart
model? why shouldn't a cart be able to know about it's total? -
tests are looking good
-
i don't see the functionality for when visiting
/:category_name
, a user sees all the items for that specific category. for example, if you have a category called "Fuzzy Animals", then the url should be/fuzzy_animals
to view all the items associated with that category
@mollybrown @cews7 @jdconrad89 @MarisaMBurton good work so far - don't forget to remove comments from your code before pushing it up to Github. let me know if you have questions ๐
create Items index view
Fix Navbar Functionality
create Cart controller
create total price for the cart
create "add to cart" button
Create Cart view
Retired Items
issueEleven:
title: Retired Items
body: >
As a user if I visit an item page and that item has been retired
Then I should still be able to access the item page
And I should not be able to add the item to their cart
And I should see in place of the "Add to Cart" button or link - "Item Retired"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.