treyx / dinner_dash Goto Github PK
View Code? Open in Web Editor NEWAn online commerce platform for a restaurant to facilitate online ordering
An online commerce platform for a restaurant to facilitate online ordering
As an unauthenticated user, I can not view an administrator dashboard
create db schema and tables
As an unauthenticated user,
When I view my cart
and click on remove from cart
The item will be removed
And I will see my updated cart
user is given a default role of 'user'
As an authenticated admin,
When I visit the admin item dashboard,
I can update or delete an item's category
Generate seed file
An order must belong to a user
An order must be for one or more items currently being sold
As an unauthenticated user,
When I view another user's details,
I am denied access
As an authenticated user,
When I visit my past orders
And I click on a specific past order
I should see:
items with quantity ordered and line-item subtotals
links to each item description page
the current status of the order
order total price
date/time order was submitted
if completed or cancelled, display a timestamp when that action took place
if any item is retired from the menu:
they can still access the item page
they cannot add it to a new cart
As an authenticated user,
When I visit the user dashboard,
And I click the Order History button
I can view my order history
As an authenticated admin,
When I access the admin dashboard,
I should see a link to the admin order dashboard,
And I click on an individual order,
I can cancel that individual order.
As an authenticated user,
When I try to log in,
I am redirected to the cart,
With an error message
As an authenticated admin,
When I visit the page of an individual user,
I can not edit the information of that user
As an unauthenticated user,
When I view the items page,
I can browse items by category
I think we should include a description to categories..like rice dishes, blah. Sushi, blah, yoshoku, blah
As an admin,
When I access the admin orders dashboard,
I can mark individual orders as completed
As an authenticated admin,
When I visit the admin order dashboard,
And I click on an individual order,
I can mark that individual orders as paid
As an authenticated user
When I try to view admin dashboard,
I see my dashboard
And an Access Denied message
As an authenticated user,
When I try to use admin features,
I am restricted
As an authenticated admin,
When I visit the admin dashboard,
And I click the button 'Add an Item',
I see the New Item page,
And I fill out the form correctly,
The item will be added
As an unauthenticated user,
And I try to access the admin dashboard,
Then I see the login page,
With an Access Denied message
As an authenticated admin,
When I visit the admin items dashboard,
And I click on an individual item
I can retire or suspend that item from the store
As an unauthenticated user,,
When I visit a users cart,
I am denied access
As an authenticated admin,
When I view the admin dashboard,
I should see:
the total number of orders by status
links for each individual order
filter orders to display by status type (for statuses "ordered", "paid", "cancelled", "completed")
link to transition to a different status:
link to "cancel" individual orders which are currently "ordered" or "paid"
link to "mark as paid" orders which are "ordered"
link to "mark as completed" individual orders which are currently "paid"
As an authenticated user,
When I click log out,
I am logged out,
And see the root index
As an authenticated admin,
When I visit the admin dashboard,
And I click the button 'Add a Category',
I see the New Category page,
And I fill out the form correctly,
The category will be added,
And I will see a list of existing categories
we need photos with each item
A user must have a plausibly valid email address that is unique across all users
A user must have a full name that is not blank
A user may optionally provide a display name that must be no less than 2 characters long and no more than 32
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 strings.
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.
As an unauthenticated user,
And I add items to my cart,
And I click the button 'checkout'
I am prompted to login
And I see the login page
As an unauthenticated user
I can not make myself an administrator
As an unauthenticated user,
When I visit the items page,
I can browse all items
As an authenticated user,
When I visit my order history,
And I click an order,
I can view details about that individual order
As an unauthenticated user,
When I visit the cart page
I can view my cart
As an unauthenticated user,
When I click "Log In"
I should see a Log In form,
And when I fill in correct user details,
I should see the User Dashboard
As an unauthenticated user,
I can add an item to my cart
As an authenticated admin
When I access the admin dashboard
And I click on an individual order,
I should see:
Order date and time
Purchaser full name and email address
For each item on the order:
Name linked to the item page
Quantity
Price
Line item subtotal
Total for the order
Status of the order
add project to heroku
As a non-admin user,
When I view the items index,
And there are items that have been retired or suspended,
I should not be able to see them in the index
Assure relationship works
As an unauthenticated user,
When I have items in my cart,
And I log in,
Then my cart has not been reset
As an authenticated user,
I can not change my role to an admin
more descriptive readme with link to project on heroku
As an authenticated admin,
When I visit the admin category dashboard,
I can add more than one category to an item
As an authenticated admin,
When I visit the items dashboard,
And I click on a button to edit an individual item link,
I can modify the item's attributes
update gemfile with require gems
As an unauthenticated user,
When I view my cart,
And I click to increase or decrease item quantity,
I will see the quantity of the item increase or decrease
configure skylight
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.