Skip to content

Instantly share code, notes, and snippets.

@StevenMeiklejohn
Last active March 22, 2018 10:48
Show Gist options
  • Save StevenMeiklejohn/3ed1b9b98b0ae27f4aed8ef7ecf1b53a to your computer and use it in GitHub Desktop.
Save StevenMeiklejohn/3ed1b9b98b0ae27f4aed8ef7ecf1b53a to your computer and use it in GitHub Desktop.

Online Shop.

Model an online shop.

You are tasked with creating an e-commerce platform. Your online store may sell anything you wish. It could be a niche, boutique store or a more general 'amazon' type. Customers will log in, add items to their basket and purchase them.

Your shop should include; A stock class with quantity, price and availability. A basket class to represent the customer/user's items for purchase. A user class with login details and purchase history.

MVP

Your shop should be able to;

  • Add, update, display and remove products.
  • Allow users to add and remove items from their basket.
  • Baskets should keep a running total.
  • Sell products.
  • Apply discounts (e.g. 2 for 1, discount on bulk order).
  • Display a confirmation page on completion of purchase.

Extensions.

  • Give the front end some styling using CSS.
  • Search for product by partial title.
  • Display products filtered by catagory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment