Skip to content

codeFather-x/limited-time-sales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Limited Time Deals

Problem Statement

Build a platform to duplicate the concept of Limited Time Deals.

A limited-time deal implies that a seller will put up an item on sale for a limited time period, say, 2 hours, and will keep a maximum limit on the number of items that would be sold as part of that deal. Users cannot buy the deal if the deal time is over Users cannot buy if the maximum allowed deal has already been bought by other users. One user cannot buy more than one item as part of the deal.

The task is to create APIs to enable the following operations

  • Create a deal with the price and number of items to be sold as part of the deal
  • End a deal
  • Update a deal to increase the number of items or end time
  • Claim a deal

TO_DO

  • Optimise for scale
  • Add exception handling

Stack

FastAPI , Python3

About

Build a platform to duplicate the concept of Limited Time Deals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages