Case studies · Marketplace

ANKA Marketplace: discovery and shopping experience

Better filters, responsive shopping pages and colour variants from seller to order, built inside a long-lived Rails marketplace without a rewrite.

ANKA · Senior Software Engineer, full-stack · 2024–2026

  • Ruby on Rails
  • PostgreSQL
  • Stimulus
  • ActiveRecord
  • ERB
  • jQuery
  • SCSS
  • Rails caching

Context

ANKA’s marketplace had evolved over many years. Its frontend combined established Rails templates rendered on the server, older jQuery interactions and newer Stimulus components.

The challenge

The product needed better discovery, responsive shopping pages and richer product choice.

None of this could be a purely visual change. Filters depend on database queries and product availability. Colour choice depends on the seller’s inventory, photos, variants, carts and orders. And the app was not going to be rewritten: the work had to happen inside the existing architecture.

What I did

  • Implemented responsive marketplace listings, storefronts, product pages, storefront reviews and responsive navigation from the designers’ mock-ups.
  • Extended the PostgreSQL-backed discovery with new filters: price, specifications, country and size.
  • Reorganised shared views and helpers to remove duplication.
  • Built colour variants end to end, from the seller’s product form to the buyer’s gallery, cart and order details.

How it works

Product discovery

Filters had to stay consistent across categories, product properties, prices, currencies and pagination. I built on the existing Rails search architecture and PostgreSQL queries.

Facet counts needed care: the count next to an option must stay meaningful when other filters are active (disjunctive facets). I added caching, grouped queries and indexes so the counts aren’t recomputed on every page. Shared partials and helpers keep the listing pages maintainable.

Colour variants

A product’s colours must match real seller stock and real photos. I modelled product colours, grouped images by colour, and linked colour to stock.

On the seller side, colour management uses Stimulus while staying compatible with the existing jQuery forms and upload components. On the buyer side, a swatch changes the gallery and the available variant. The chosen variant is carried into the cart, and the order keeps the colour and image the buyer picked.

Step-by-step modernisation

The app was not rewritten in React or Vue. It stayed a hybrid Rails frontend: ERB, older JavaScript, selected Stimulus components, SCSS and Rails conventions. Other engineers had set up Rails 7 and importmap before this work, and the visual design of the rebrand came from ANKA’s designers. My part was building these experiences and connecting them to the app’s behaviour and data.

Result

Responsive listings, richer discovery and filters, shared views that are easier to maintain, cached facets, better storefront and product pages, and colour choice from seller to order. All of it is deployed in production, without replacing the existing architecture.