Skip to content

a flash sales site where customer save more when shop more.

License

Notifications You must be signed in to change notification settings

Abhay2021/flash-sales-site

Repository files navigation

# Flash Sales Site MVP with LIMIT LOGIN ATTEMPTS

Create a flash sales site where customer save more when shop more.

Admin should be able to create deals with following information:

  • title
  • description
  • price
  • discounted price
  • quantity
  • publish date.
  • An Image

A deal should be publishable if:

  • It has all the required attributes, and passes other validations, wherever required.
  • No other deal is scheduled to be published on the same date.
    • Only one deal can be live at a time.

Deal will be live for 24 hours only, and every new deal will be published at 10 AM IST.

The site wuld be membership only site, so customer need to be logged in to see any deal.

The site's home page would be displaying the deal of the day with deal details and buy now button.

Buy Constraints:

  • Customer can buy one and only one quantity of the deal.
  • Clicking on buy now button should ask for confirmation before placing order. We'll not take any payment or shipping info for now, so the order is placed as soon as customer confirms the order.
  • Also ensure that we do not over sell i.e we sell only 'n' quantities if 'n' quantities were available. Handle race condition here.
  • Rewarding Returning Customers:

    • Returning Customer would get additional 1% discount on the discounted price on his every next order and max up to 5%.
      • For example: Customer placing order for the first time would get no additional discount, but would get additional 1% on his second order, similarly 2% on third and so on.

login details

login : www.example.com/deals/login login email : admin@gmail.com password : 12345

user email : smith@yahoo.com password : 12345

Changelog and New Features

Server Requirements

PHP version 5.6 or newer is recommended.

It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features.

Installation

import mvc.sql file in mysql database

License

Please see the license agreement.

Resources

Acknowledgement