Code Monkey home page Code Monkey logo

apocalypsify's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

Please feel free to use a different markup language if you do not plan to run rake doc:app.

apocalypsify's People

Contributors

gregoryarmstrong avatar bethsebian avatar jlawlzz avatar

Watchers

Rachel Warbelow avatar  avatar  avatar  avatar

apocalypsify's Issues

Create Wireframes for Most Important Views

Think about what you think the workflow should be on the site. Which of those views is most important?
In addition to the home page wireframe, create wireframes for the next two most important pages.
Examples might be: A users' profile page, a product page, an admin dashboard etc...

Admin Item Creation *

As an authenticated Admin:
I can create an item.
- An item must have a title, description and price.
- An item must belong to at least one category.
- The title and description cannot be empty.
- The title must be unique for all items in the system.
- The price must be a valid decimal numeric value and greater than zero.
- The photo is optional. If not present, a stand-in photo is used.

Visitor can view items

Background: I have several items and each of them has a title, description, price, and image
As a visitor
When I visit "/items"
I can see all existing items

Removing an item from my cart

Background: My cart has an item in it
As a visitor
When I visit "/cart"
And I click link "Remove"
Then my current page should be "/cart"
And I should see a message styled in green
And the message should say "Successfully removed SOME_ITEM from your cart."
And the title "SOME_ITEM" should be a link to that item in case the user wants to add it back
And I should not see the item listed in cart

Unauthenticated users security

Background: An unauthenticated user and their abilities
As an Unuthenticated User
I cannot view another user's private data, such as current order, etc.
I should be redirected to login when I try to check out.
I cannot view the administrator screens or use administrator functionality.
I cannot make myself an administrator.

Adjusting the quantity of an item in the cart

Background: My cart has an item in it
As a visitor
When I visit "/cart"
Then I should see my item with a quantity of 1
And when I increase the quantity
Then my current page should be '/cart'
And that item's quantity should reflect the increase
And the subtotal for that item should increase
And the total for the cart should match that increase
And when I decrease the quantity
Then my current page should be '/cart'
And that item's quantity should reflect the decrease
And the subtotal for that item should decrease
And the total for the cart should match that decrease

Admin Orders *

As an Admin
When I visit the dashboard
Then I can see a listing of all orders
And I can see the total number of orders for each status ("Ordered", "Paid", "Cancelled", "Completed")
And I can see a link for each individual order
And I can filter orders to display by each status type ("Ordered", "Paid", "Cancelled", "Completed")
And I have links to transition the status
- I can click on "cancel" on individual orders which are "paid" or "ordered"
- I can click on "mark as paid" on orders that are "ordered"
- I can click on "mark as completed" on orders that are "paid"

Authenticated User

As a visitor
When I visit "/"
Then I should see a link for "Login"
And when I click link "Create Account"
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"

And when 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 users security

Background: An authenticated user and the ability to add an admin 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

Viewing a past order

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
And if any of the items in the order were retired from the menu
Then they should still be able to access the item page
But they should not be able to add the item to their cart

Adding items to the cart

Background: Items, and a user that is not logged in
As a visitor
When I visit any page with an item on it
I should see a link or button for "Add to Cart"
When I click "Add to cart" for that item
And I click a link or button to view cart
And my current path should be "/cart"
And I should see a small image, title, description and price for the item I just added
And there should be a "total" price for the cart that should be the sum of all items in the cart

Viewing past orders

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

Checking out

Background: An existing user and a cart with items
As a visitor
When I visit "/cart"
And I click "Checkout"
Then I should be required to login
When I am logged in
And I visit "/cart"
And I click "Checkout"
Then the order should be placed
And my current page should be "/orders"
And I should see a message "Order was successfully placed"
And I should see the order I just placed in a table

Admin User Dashboard

As an Admin
When I visit "/admin/dashboard"
I will see a heading on the page that says "Admin Dashboard"
As a registered user
When I visit "/admin/dashboard"
I get a 404
As an unregistered user
When I visit "/admin/dashboard"
I get a 404

Browsing Items by travesty

Background: I have two travesties with titles and each has two different items assigned
As a visitor
When I visit "/TRAVESTY_NAME" (for example: "/pollution")
I see all items assigned to that travesty

Admin logs in

As an Admin
When I log in
Then I am redirected to "/admin/dashboard"

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.