erin-king / little_shop Goto Github PK
View Code? Open in Web Editor NEWThis project forked from csheesley/little_shop
This project forked from csheesley/little_shop
As a merchant
When I visit my dashboard
I see a link to my manage my coupons (coupon index page)
As a merchant
When I visit my coupon index page
I see a list of my coupons
Each coupon has a name, percent off value
Each coupon code is a link to the coupon's show page
The cart show page should calculate subtotals and the grand total as usual, but also show a "discounted total".
A coupon code from a merchant only applies to items sold by that merchant.
As a merchant
when I visit my coupon show page
I click on the Delete Coupon button
I am redirected to the coupon index page and I don't see the deleted coupon
As a user,
I can add a coupon code when checking out.
Only one coupon can be added per order
Coupons can be used by multiple users, but may only be used one time per user.
Users can enter different coupon codes until they finish checking out, then their choice is final.
As a merchant
when I visit my coupon index page
I click on the Add Coupon button
I'm directed to a new page where I see a form with a coupon code and percentage field
I enter the information
I am redirected to the coupon index page and I see my new coupon
Task:
Build a Merchant leaderboard as part of the "/merchants" page containing additional statistics that all users can see.
Implementation Guidelines:
It may be tricky to build any one portion of these statistics in a single ActiveRecord call. You can use multiple calls in a method to build these statistics, but allow the database to do the calculations, not Ruby.
Mod 2 Learning Goals reflected:
As a visitor to the site
When I visit the Merchant Leaderboard at '/merchants'
I see Top 10 Merchants who fulfilled non-cancelled orders last month
As a logged in user
When I visit the Merchant Leaderboard at '/merchants'
I see top 5 merchants who have fulfilled items the fastest to my city
As as merchant
when I visit my coupon show page
and I click on the Edit Coupon button
I am brought to an edit page where I can edit my coupon
I edit then click submit and I am redirected to the index page and I see my edited coupon
Task:
Merchants can generate coupon codes within the system.
Implementation Guidelines:
Users can enter different coupon codes until they finish checking out, then their choice is final.
The cart show page should calculate subtotals and the grand total as usual, but also show a "discounted total".
Order show pages should display which coupon was used.
If a user adds a coupon code, they can continue shopping. The coupon code is still remembered when returning to the cart page.
Mod 2 Learning Goals reflected:
Database relationships and migrations
ActiveRecord
Software Testing
HTML/CSS layout and styling
As a logged in user
When I visit the Merchant Leaderboard at '/merchants'
I see top 5 merchants who have fulfilled items the fastest to my state
As a visitor to the site
When I visit the Merchant Leaderboard at '/merchants'
I see Top 10 Merchants who sold the most items last month
As a merchant
when I visit my coupon show page
I see buttons to manage my coupon:
As a visitor to the site
When I visit the Merchant Leaderboard at '/merchants'
I see Top 10 Merchants who fulfilled non-cancelled orders this month
As a visitor to the site
When I visit the Merchant Leaderboard at '/merchants'
I see Top 10 Merchants who sold the most items this month
As a merchant
when I visit my coupon show page
I see an enable button next to disabled coupon
I see a disable button next to enabled coupon
When I click the button, I am redirect the the index page and the coupon now shows the opposite value
Maybe have the text a different color?
If a user adds a coupon code, they can continue shopping. The coupon code is still remembered when returning to the cart page
Order show pages should display which coupon was used.
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.