Emircan Erdemci

Offhanger

Clothing deals from five stores, with basket discounts included.

  • TypeClothing deals and price comparison
  • Year2026
  • My roleDesign, data pipeline and full stack development

Offhanger brings together in-stock men’s and women’s clothing from five Turkish stores. It includes basket discounts in the price, shows which store sells the same product for less and tracks how prices change over time.

The challenge

Basket discounts can make the price on a product page differ from the amount paid. Comparing the same item across stores also means checking product codes and available sizes. Each store structures its catalog differently, making that information harder to bring together.

My role

I designed and built Offhanger, from the Python crawler to product matching and price history. I added size and outfit suggestions to the interface and deployed the application with Docker.

Architecture

Where each part runs. Red follows the example flow.

  1. L1 Interface Runs on: Browser

    Collection, search, favourites, product pages with price charts, a size assistant and outfit suggestions. Light and dark themes.

    • Next.js 16
    • React 19
    • Tailwind CSS 4
    • shadcn/ui
    • Motion
  2. L2 Edge Runs on: Cloudflare

    Proxies the domain and terminates TLS. Pages are not cached, so prices stay current.

    • Cloudflare
  3. L3 Server Runs on: Docker on an Oracle Cloud VM

    Two containers through Dokploy: the Next.js app, and a Python updater that refreshes the catalog every hour.

    • Node 22
    • Python 3.13
    • Docker Compose
    • Dokploy
  4. L4 Data Runs on: Docker volume

    The catalog and price history as JSON files. The web container mounts them read-only.

    • JSON catalog
    • Price history
    • Docker volume
  5. L5 External services Runs on: Store websites

    Four Akinon storefronts return listings as JSON; Derimod uses Shopify’s public product feed.

    • Akinon storefronts
    • Shopify

Step by step: From store listings to a refreshed catalog

  1. L3 · Server The updater starts a crawl an hour after the previous one ends.
  2. L5 · External services Each store’s listings are read page by page, with a short pause between requests.
  3. L3 · Server Products become one model, with the basket price and in-stock sizes.
  4. L4 · Data Price changes are added to the history; both files are replaced atomically.
  5. L3 · Server The web app sees the new file and reloads it without a rebuild.
  6. L1 · Interface Visitors get current offers, the cheapest store and the price trend.

Key decisions

  1. 01

    Basket discounts included

    Basket discounts that apply to a single item are included in the listed price. The product page also shows the store’s displayed price and the campaign applied.

  2. 02

    Comparison by selected size

    Model and colour codes shared by three stores bring matching products into one listing. When a size filter is selected, it shows the cheapest store with that size in stock.

  3. 03

    Keeping the last successful snapshot

    If a store fails or returns less than 90% of its previous listing, its last successful snapshot is kept. If every store fails, the existing catalog remains available.

  4. 04

    Crawling within store rules

    The crawler follows each store’s robots.txt and pauses between requests. Its user agent includes the crawler’s name and a link to the contact page.

  5. 05

    Size and outfit suggestions

    The size profile is stored in a cookie so the server can mark the suggested size. Outfit suggestions use rules based on colour, category and price.

  6. 06

    Controlled indexing

    Response headers, meta tags and robots.txt keep the site out of search results until indexing is switched on.

Desktop and mobile

Next project · 05 InspireIT A bilingual corporate website built with WordPress.
Contact

Let's talk.

Email me about your next web project.

Email me iletisim@emircyn.com