DEV Community

Kai Dev
Kai Dev

Posted on Edited on

I Shipped a Production E-commerce Store Between Two Coffees — Here's the Whole Stack

I Shipped a Production E-commerce Store Between Two Coffees

No Shopify subscription. No Vercel bill. No React hydration. One static HTML directory, a PayPal redirect, and nginx. Here's the entire stack and every gotcha that cost me time.

The stack

  • 10 product pages + landing, generated by a ~200-line Python script from a JSON catalog
  • PayPal _xclick hosted checkout — no API keys, no webhooks, no PCI surface. PayPal hosts the payment page; cards work without a PayPal account
  • nginx static vhost + Let's Encrypt on a VPS I already ran
  • DNS A record + IndexNow ping — indexed by Bing within hours
  • Total hosting cost: $0 incremental

Why static for dropshipping-style storefronts

The conventional wisdom is Shopify. You pay 30/month plus 2.9%+ per transaction, and you own nothing. A static store is:

  1. Unbreakable. No database, no build at request time. It rendered before your coffee got cold and will render next year.
  2. Instant. Every page is ~7KB of HTML. Lighthouse 100 is not a goal, it's a side effect.
  3. Portable. rsync is the deploy pipeline.

The catch: no inventory sync, no variant logic, no discount engine. For a curated 10-SKU seasonal store, all fine. For a 500-SKU catalog, use Shopify honestly.

The gotchas that actually bit me

1. The PayPal return URL. PayPal's _xclick return= parameter silently defaults to staying on PayPal if you typo the domain — I had example.com in a template variable for hours. Verify the full redirect chain: POST your form params with curl, follow redirects, and confirm you land on your thank-you page.

2. Open Graph is your whole social strategy. A store link that unfurls as a bare URL gets zero clicks. Every page needs og:title, og:description, og:image (absolute URL). Validate by viewing source, not by hope.

3. IndexNow > waiting on Google. Bing/Yandex/Yandex-adjacent engines accept instant URL pings: drop a key file at the domain root, POST your URL list to api.indexnow.org, get 202 Accepted. Google still crawls on its own schedule, but Bing indexed my 16 URLs same-day.

4. Product JSON-LD is free rich results. One <script type=application/ld+json> with @type: Product, price, and availability per page. Costs 30 seconds at generation time, gets you price + availability in search snippets.

The generator pattern

One Python file, a products list, and string templates:

def pdp(p):  # product detail page
    ld = json.dumps({
        "@context": "https://schema.org", "@type": "Product",
        "name": p["title"], "image": [BASE + "/" + u for u in p["images"]],
        "offers": {"@type": "Offer", "price": p["price"],
                   "priceCurrency": "USD"}}, ensure_ascii=False)
    return head(p["seo_title"], p["seo_desc"], og_image=..., canonical=...) + ld + body(p)
🏆 āļĒāļ­āļ”āļ™āļīāļĒāļĄ: kai dev/i shipped a production e commerce store between two coffees heres the whole stack f - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ” ðŸ† āļĒāļ­āļ”āļ™āļīāļĒāļĄ: kai dev/i shipped a production e commerce store between two coffees heres the whole stack f - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”

Every "page" is a function returning a string. Sitemap and robots.txt generate themselves from the same product list. Changing a price is a one-line JSON edit + regenerate + rsync.

What's next

A/B the landing hero with real traffic, add a second store vertical, and wire an email capture (static form → hosted endpoint) so I'm not 100% dependent on search and social.

The store itself is live at nooknest.trywakeel.com — curated holiday gifts, and yes, every page you click was emitted by the 200-line script above.

What's the most ruthless simplification you've made to a commerce stack? Genuinely curious where the static line is for others.


Want the behind-the-scenes QA story? How a vision model caught 9/11 mislabeled supplier photos before customers did: https://dev.to/kai_dev/a-vision-model-caught-911-mislabeled-products-on-my-storefront-heres-the-audit-3ifk

The store itself: https://nooknest.trywakeel.com — and my bug-bounty toolkits (from $7): https://wakeelkai.gumroad.com

Top comments (1)

🏆 āļĒāļ­āļ”āļ™āļīāļĒāļĄ: kai dev/i shipped a production e commerce store between two coffees heres the whole stack f - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”
 
cadence_mira profile image
Cadence Studio •

Static storefront plus PayPal is close to the floor on infrastructure cost, and it is a fair trade.

The part I would watch is the week after the first order rather than launch day. The pages that decide whether someone comes back are the dull ones: who pays return shipping, whether the delivery window is a range or a promise, and what happens when a parcel turns up damaged. None of that lives in the checkout, and buyers read it more than the homepage.

Did you write those before the first sale, or after?