How AttireBulk is built

AttireBulk is a B2B fashion wholesale marketplace. Retailers and wholesalers in Pakistan use it to buy ready-to-order stock straight from verified factories: men's, women's and kids' wear, footwear, and accessories, in bulk, at factory-direct prices.

It isn't one app. It's a small family of them, and the way they're split, and the tools underneath, came from the problem rather than from what was fashionable. This post walks through those decisions.

The problem it had to solve

Bulk clothing in Pakistan has traditionally moved through middlemen. A retailer who wants a few hundred pieces calls someone, who calls someone else, who knows a factory. Prices change depending on who's asking. Nobody can see what's actually in stock until they've already committed.

So the product needed three things from day one:

Most of the decisions below trace back to one of those, or to the practical reality of running several apps at once.

Three apps, not one

Buyers and sellers want completely different things from the same marketplace. A retailer wants to browse, compare, and order. A manufacturer wants to accept orders, update stock, and see what's selling. Cramming both into one app makes both experiences worse.

So the system is split by who's using it:

They're built to work together: buyers place orders in AttireBulk, sellers manage those orders in Seller Center, and Shipper is being built to coordinate deliveries across the same network. Each app only shows its user what they need.

One codebase, two stores: Flutter

AttireBulk serves buyers in Pakistan and abroad, with multi-currency pricing and international shipping, so it had to be on both Android and iOS from the start.

Building two native apps for every product in the family would have meant doubling the work for each one. Flutter lets one Dart codebase ship to both the App Store and Google Play, with the same UI and the same behaviour on both. When you run several apps at once, that is the difference between shipping and not shipping.

Real-time by default: Firebase

"Real-time inventory" isn't a nice-to-have in wholesale. If two retailers order the last 300 units of the same article, one of them gets a bad surprise, and the seller gets a support headache.

Firebase sits behind the apps and keeps them in sync. When a seller updates sizes, colours, fabrics, or prices in Seller Center, buyers see it. When a buyer places an order, the seller gets a push notification the moment it lands. Restock and new-arrival alerts on the buyer side work the same way.

The trade-off is that a real-time backend like Firebase asks you to plan data around the screens that read it, which is a different way of thinking from a classic SQL backend. For an app where most screens are live views of changing stock, it fits.

Fixing things without waiting for the store: Shorebird

A normal mobile release goes through app store review. That's fine for new features, but painful when a bug is stopping someone from placing an order today.

Shorebird adds code push to Flutter apps. Fixes to the app's Dart code can be pushed straight to installed apps, without a full store release. For a marketplace where every broken checkout is lost revenue for a seller, being able to ship a fix the same day matters more than almost any feature.

Features that shaped the build

A few product features had a bigger effect on the architecture than you'd expect from their names:

What I'd tell anyone planning an app like this

Related project

See the full project page: AttireBulk, B2B fashion wholesale marketplace.

Building a marketplace app?

I build commerce and marketplace apps for iOS and Android. Tell me what you have in mind.

Message on WhatsApp Email me