Markets often throw away products a few days before they expire.
Role
A team project with Adil Eren, Mert and Ozan. I did the design, wrote most of the market dashboard and tested the rest. We wrote the code ourselves; when I redesigned it after the course, I had a little help from AI.
Markets often throw away products a few days before they expire. That was the problem our CTIS256 project gave us. The four of us built a site where a market can list those products at a discount, and people in the same city can buy them while they're still good.
What it does
IMarket and shopper accounts, both confirmed with a code sent to your email
IIA countdown on every product: 3 days left, 1 day left, then it's gone from the shopper's side
IIIA cart that won't let you add more than the market has in stock
IVA market dashboard for adding, editing and deleting products, with one button that clears out everything expired
Screens
I / VII
What a shopper seesLooking for cheeseThe cartThe market's sideAdding a productEditing a productExpired ones, about to be cleared
What a shopper sees
Technical notes
IShoppers only ever see products from their own city that are still in date, and the ones in their own district come first. All of that is decided in the SQL query, so the page itself stays simple.
IIThe days-left number isn't stored anywhere. It's worked out from the expiry date each time the page loads, so the badge counts down on its own.
What I learned
My first full-stack project, and the first time I saw how the page, the server and the database fit together into one system.