Back to works
PlateV

Sustainable Discount Market

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.

Stack

Node.jsExpress.jsEJSMySQLJavaScriptHTMLCSSbcryptMulterNodemailerDocker
Sustainable Discount Market

Overview

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

  • Market and shopper accounts, both confirmed with a code sent to your email
  • A countdown on every product: 3 days left, 1 day left, then it's gone from the shopper's side
  • A cart that won't let you add more than the market has in stock
  • A market dashboard for adding, editing and deleting products, with one button that clears out everything expired

Screens

What a shopper sees
Looking for cheese
The cart
The market's side
Adding a product
Editing a product
Expired ones, about to be cleared

What a shopper sees

Technical notes

  • Shoppers 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.
  • The 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.