Skip to content
All case studies
10 Aug 2026

Building a boutique storefront that survives a Facebook campaign

SkyCrew from business model to schema: who the customer is, why out of stock products stay visible, and how the whole platform stays editable without a deploy.

Role
Founder and engineer
Timeline
2026
Stack
Next.js, NestJS, Prisma, PostgreSQL, SSLCommerz, Steadfast

Context

SkyCrew is a premium aviation accessories brand for Bangladesh. Vests, lanyards, keychains and aircraft models for pilots, cabin crew, engineers, ground staff and aviation students.

It is my own product. I wrote the requirements, designed the system, built the storefront, the admin panel, the API and the database, and it is live and taking orders.

Knowing the customer changes the architecture

This is not a general store, and pretending otherwise would have produced a worse system.

They arrive from Facebook, on a phone, mid scroll. Nearly all traffic comes from Facebook ads and groups. That is not a marketing detail, it is a performance requirement. The product page is the landing page, and it has one shot on a mobile connection.

They shop by airline and aircraft, not by product type. An Emirates cabin crew member is not looking for "lanyards". They are looking for their airline. Someone building a Boeing collection wants Boeing, across every category.

That produced the first real modelling decision.

Categories and collections are different things

A category is where a product lives structurally: vest, lanyard, keychain, aircraft model. One product, one category.

A collection is a curated group for discovery: Emirates, Biman Bangladesh, Boeing, Airbus, Pilot, Cabin Crew, Warning Tags. One product can sit in many.

code
Category      1 ---- many  Product
Collection    many ---- many  Product

Collapsing these into one taxonomy is the mistake, and it is common. You then get either the same physical product duplicated once per campaign, or a category tree that grows a branch every time marketing has an idea. Splitting them means a new campaign is an admin action on existing products.

Out of stock products stay visible

The usual instinct is to hide what you cannot sell. I made the opposite decision, and it is the one I would defend hardest.

Product status is explicit: In Stock, Low Stock, Out of Stock, Coming Soon, Pre-order and an internal Archived state for products with order history that should no longer appear.

Hiding an out of stock product protects a conversion metric and destroys the only signal that tells you what to restock. A visible out of stock product keeps interest attached to the actual item. Aircraft models launched as Coming Soon before a single unit existed, for exactly that reason.

Archived exists because deletion is not an option once a product appears on an order. Deleting it either breaks the order history or forces the order to carry a dangling reference. Which brings me to the schema rule that matters most.

An order records what happened, not what is currently true

Order items store the price and the product details as they were at purchase time, not a reference to be resolved later.

sql
create table order_items (
  id          uuid primary key,
  order_id    uuid not null references orders(id),
  product_id  uuid not null references products(id),
  variant_id  uuid,
  quantity    int not null check (quantity > 0),
  unit_price  int not null,   -- copied at purchase, minor units
  total_price int not null
);

Copying the price looks like duplication and is not. Prices change, sales end, names get rewritten. If an invoice from March is rendered by joining to today's product row, then your invoices change over time, which is a real problem the moment anyone audits them.

Every order also carries a human readable order number, separate from its UUID, because a customer on WhatsApp is not going to read out a UUID.

Nothing a shop owner needs to change requires a deploy

The acceptance criterion I set for myself: categories, collections, homepage sections, shipping rates, free shipping threshold, coupons and site settings are all database driven and editable from the admin panel.

The test is concrete. Creating a new collection, assigning products and having it appear on the homepage must involve no code change and no redeploy. A platform that needs an engineer to add a category is a platform with one bottleneck, and I am the bottleneck.

The stack, and why

NestJS with Prisma over PostgreSQL. Modular by feature, one module per domain area. The structure is heavier than a small store strictly needs, and I chose it knowingly: this is a catalogue that will grow variants, pre-orders and partial payments, and those are cheaper to add to a modular system than to retrofit into a flat one.

PostgreSQL, not a document store. Orders, inventory and coupons are relational and transactional. Reserving stock and creating an order is one transaction or it is an oversell.

Admin on both web and mobile. Orders in a small business get confirmed from a phone at nine in the evening. An admin panel that only works on a laptop is an admin panel that does not get used.

Trade-offs I accepted

Login required for checkout. It costs conversion, measurably. It is still right here: delivery in Bangladesh depends on a reachable phone number and a real address, and the support cost of an untraceable order is higher than the friction.

Reviews require both a verified purchase and admin approval. Slower to accumulate social proof. A new brand cannot afford a fake review, and it cannot afford to be seen moderating badly either.

One coupon per order, no stacking. Every stacking system I have seen eventually produces an order that costs the business money. The rule is enforced at the model level, not in the interface.

Results

Live at skycrew.online, taking real orders, with the catalogue and content managed entirely through the admin panel.

CONTENT NEEDED: orders shipped, conversion, repeat purchase rate, whatever you are comfortable publishing.

What I would change

Capture demand on out of stock products explicitly. Right now the product stays visible, which is better than hiding it, but interest is inferred from traffic instead of collected. A notify me action on out of stock and Coming Soon items would turn a guess about restocking into a list of people waiting for a specific variant.

Why this project is on my CV

Most engineers can describe a checkout flow. Fewer have had to decide whether login before checkout was worth the conversion it costs, and then live with the answer. Owning the business side of these calls changed how I argue for technical decisions at work.