Here, I’m going to describe the core functionality of the application.
Creating New Auction
A signed in user can create a new auction by filling in all the required fields. Basic validations (e.g. the end date is in the future, or the buy it now price is a number) are ran when a new auction is being created:
Every user can view the list of all auctions, as well as view detailed information about each individual auction.
After an auction has been created, other users can bid on it.
A flash messages pops up after a bid has been accepted.
Other users don't know who made the bid, they can only see the highest bid's value.
Another bid is accepted.
While bidders see only the highest bid's value, the seller has access to more detailed information.
Besides ensuring that the bid is present and is a number, the application verifies that:
An auction gets stopped and its item gets purchased if a user pays the Buy It Now price of the auction.