Skip to content

Latest commit

 

History

History
executable file
·
41 lines (34 loc) · 2.15 KB

README.md

File metadata and controls

executable file
·
41 lines (34 loc) · 2.15 KB

Wantable Code Challenge App (Simple E-Commerce)

Welcome to the challenge portion of your Wantable Rails interview! Here we've provided a sample application and database with data already created and we're asking you to make some backend order fulfillment and reporting pages for it! The goal is to spend 3-5 hours on this so don't go overboard with styling or making it look perfect; we're looking to see how you implement the solutions. There are a ton of different ways to meet these requirements and we want to see what you would do and what you're most comfortable building in. Choose your own adventure! Feel free to add/remove routes/controllers/gems/frontend frameworks if you feel like it better "completes" the app or you are more comfortable with.

Technologies

Requirements

Build out the following features, your project into Github to share with Wantable IT.

Views

  • Order List & Order Search functionality
    • Include at least the order number, state and user email address, any additional information that you think would be helpful to view in the list and search by.
  • Order Detail
    • Display Address / User / OrderItems / Payments

Reports:

  • Coupon Users
    • Provide a dropdown to select coupons.
    • Display user email, number of and revenue in orders after the coupon order for that customer
  • Sales By Product
    • Provide a date range
    • Display a table of products name, sold count and revenue during that date range

Bonus points

  • Cancel order button
  • Pagination
  • Unit testing

Supporting Information

  • erd diagram (generated with rails-erd)
  • All stateful models have associated _at timestamps
  • Orders have 3 states: building, arrived and canceled
    • When the order is canceled all product order items move returned & payments move to refunded
  • Order Items have 2 states: sold and returned
    • Only product order items have states
  • Payments have 2 states: completed and refunded
    • refunded payments do not count towards sales totals