Giter Club home page Giter Club logo

little_shop's Introduction

Mini-Market

Rails e-commerce website. The site is devoted to selling mini-stuff!

link to heroku

DTR

little_shop's People

Contributors

cews7 avatar mollybrown avatar

Watchers

James Cloos avatar  avatar  avatar Jason Conrad avatar

Forkers

jdconrad89

little_shop's Issues

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

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

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"

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

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

  1. i like that you're commenting on PR's. i'd like to see even more commits!

  2. 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 ๐Ÿ‘

  1. you currently have cart_total defined in your ApplicationHelper. wouldn't this method be more appropriate in the Cart model? why shouldn't a cart be able to know about it's total?

  2. tests are looking good

  3. 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 ๐Ÿ‘

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.