We're going to build an e-commerce site! We're going to make an online store where users can browse items, put items in their carts, and buy items, which changes our inventory.
- Have just an email and password
- Should be able to log in and log out
- Also sign up
- Note: You must use the Devise gem to set up user for tests to pass.
- You may find that you're missing some seed data. Look at the error messages you get carefully and don't be surprised if you have to add some seed data
- List of available items whether you are logged in or not
- If logged in, each item should have an "Add to Cart" button
- When the user adds an item to the cart it should show them their current cart
- Users should be able to checkout from their cart
- This shows them their cart afterwards, and deducts inventory from each item
- Prices should be in the
$XX.XX
format - The Checkout process should set that current cart to a status of "submitted"
- Users should know who they are logged in as
- Users should be able to sign in/out from the navigation bar
- Users should always be able to go "home"
- If the user has a current cart, there should be a "Cart" link to their current cart