All projects

Case study

KocaTex

Online catalogue and back office for a fabric wholesaler in Novi Pazar: 25 fabrics in 670+ shades, previewed on a garment in any colour, ordered through an inquiry cart, and fulfilled from a stock system that knows both stores.

KocaTex
Industry
Textile wholesale
Services
Web platforms, Backend & APIs, Internal tools
Platform
Web app, E-commerce, Dashboard
Year
2026April to August 2026

In numbers

The build, counted.

fabric types
25
shades
670+
minimum order per item
50 m
stores, one stock system
2

KocaTex

Overview

KocaTex is a family wholesaler founded in 2016 in Novi Pazar. It sells fabrics for light garment manufacturing, from tri-thread fleece and viscose to piqué, interlock and double face, to producers across Serbia, delivering with its own transport. There are no list prices: a buyer asks, and the office quotes.

The site had to make a large, colour-heavy range easy to browse without photographing hundreds of shades, turn browsing into a proper inquiry, and give the office one place to answer it, turn it into an order and keep stock right.

I built all three parts: the public Next.js catalogue, the Express and MongoDB API, and the admin where the KocaTex team handles inquiries, orders, stock and customers. The site is in Serbian, the language of its buyers.

Catalogue

The right fabric, narrowed down fast

Buyers search and filter the whole range by category, colour family, fibre, tags and weight. Colour families are worked out from each shade's colour value and fibres from the composition, so the filters stay correct as the catalogue grows without anyone tagging by hand.

  • A two-handle slider for weight in g/m²
  • Six categories, from knits to linings
  • Catalogue pages refreshed the moment the office changes something

Fabric preview

Every shade on a garment, no photo needed

Photographing every shade of every fabric wasn't realistic, so the material page draws it. A T-shirt, dress or tracksuit silhouette is filled with the chosen colour, and a texture that matches the fabric's weave, rib, jersey, twill, piqué, sheen or plush, sits on top. Change the shade or the garment and the preview follows.

  • Garment silhouettes drawn in SVG
  • 30 weave textures built in CSS
  • Composition, weight and minimum order beside the preview

Shades

From a photo of a colour card to 670 shades

Suppliers send physical colour cards. I built a small browser tool that reads a photo of a card: it corrects for the colour of the paper, samples the middle of each swatch and numbers it the way the catalogue does. Another script names the shades by their distance to known colours, and an import turns every card into colours, products for each weight, and starting stock for each store.

  • 20 colour cards read so far
  • Shades named with the CIEDE2000 colour difference

Inquiry cart

A cart that ends in a quote, not a payment

Wholesale prices depend on quantity, so the cart collects fabrics, shades and metres and sends them as one inquiry. The server checks each line against the fabric's minimum order, the buyer gets a confirmation email, the office gets the full list, and the office replies with a price within a working day.

  • The cart is kept in the browser and synced across tabs
  • Spam held off with a hidden field and rate limits
  • Customer accounts with their orders and inquiries

Mobile

Ordered from the workshop floor

Many buyers order from a phone, between machines. The preview, the shade picker and the cart all work at phone width, inputs are sized so iOS doesn't zoom into them, and a WhatsApp button reaches either of the two sales contacts directly.

Back office

From inquiry to delivery, with stock that adds up

In the admin the office turns an inquiry into an order with a yearly number, then moves it through acceptance, preparation, shipping and delivery, with every change kept in its history. Accepting an order takes the metres out of stock for each fabric, weight and shade in the right store; cancelling puts them back. Every line is checked before anything is written, so an order is never half deducted.

  • Order numbers per year, like 2026-0001
  • Customers with their order history and top products
  • A dashboard with inquiries and orders over time
  • Separate staff roles for admins and editors

Search and privacy

Found by search engines, quiet until you agree

Every fabric is described to search engines as a product with its price on request and minimum quantity, both stores as local businesses with their opening hours, and the FAQ answers are written from the catalogue itself, so the numbers in them never go stale. Analytics and the Meta Pixel load only after a visitor agrees, and the shop counts its own page views with a visitor key that changes every day.

  • Sitemap built from the catalogue and the blog
  • Sharing images generated for the site and every post
  • Google Consent Mode v2, denied by default

Problem and solution

What stood in the way, and what got built to deal with it.

  • Problem

    Hundreds of shades across 25 fabrics, and no photos of most of them.

    Solution

    Shades are read from photos of the supplier cards, and the site draws each one on a garment with the fabric's texture.

  • Problem

    Wholesale doesn't fit a checkout: prices depend on quantity, and orders have a minimum.

    Solution

    A cart that sends an inquiry, checked against each fabric's minimum, and an admin that turns it into an order.

  • Problem

    Two stores share one range, and a cancelled or half-entered order can leave stock wrong.

    Solution

    Stock is kept per product and per store, deducted only when every line of an order fits, and returned on cancellation.

Goals

  1. Make a large, colour-heavy range easy to browse
  2. Show every shade without photographing it
  3. Turn browsing into complete, usable inquiries
  4. Keep stock right across two stores

Built with

  • Next.js
  • React
  • Tailwind CSS
  • Node.js
  • Express
  • MongoDB
  • Zod

A look inside

Results

What changed for the business after launch.

  • Buyers who never worked with KocaTex now find the range online and send inquiries
  • Fewer calls about colours, stock and minimum orders
  • Inquiries arrive complete, ready to quote
  • Orders and stock for both stores in one place

Clients

What clients say about working with me.

Buyers who had never worked with us now find us online and send inquiries. There are fewer calls just to ask which colours we have or what's in stock, and we run orders and stock for both stores in one place.

Bakir Koca

CEO & Founder · KocaTex

KocaTex

Want results like these for your business?

  • Fixed-price offer in 48 h
  • Free 30-minute call
Next case study

Doha Restoran

A digital menu for a restaurant in Novi Pazar: guests scan the code on the table, pick one of three languages and browse 112 dishes and drinks on their phone.

Read it
The Doha Restoran digital menu on four phones