Neoviere
@neoviere.studio
Back to projects

Pyrmont Indonesia

A full e-commerce platform built from scratch, checkout to admin.

Type
E-Commerce Platform
Year
2026
Status
Live
Technology
Next.js, TypeScript, Supabase, PostgreSQL, Midtrans
Pyrmont Indonesia

Background

Pyrmont Indonesia needed a complete commerce platform rather than a storefront skin: inventory that understands size and colour variants, a checkout that cannot oversell during high-demand releases, and an admin surface the team can actually operate.

What we delivered

  • Product discovery, cart and checkout flows
  • Per-SKU inventory tracking stock across size × colour variants
  • Midtrans payment gateway integration
  • Atomic, race-condition-safe stock reservation using PostgreSQL functions
  • Row-Level Security, rate limiting and brute-force protection
  • Signed one-click email verification for review submissions
  • Order management and admin operations

The challenge

Variant-based apparel inventory makes overselling a structural risk: two shoppers can hold the last item of a size-and-colour SKU in their carts at the same moment, and a naive read-then-write reservation will confirm both. The platform needed reservation logic that is correct under concurrent checkout, not merely fast in the common case.

Approach

  1. 1

    Atomic stock reservation in the database

    Stock reservation was pushed into PostgreSQL functions so that checking availability and decrementing stock happen as a single atomic operation. Moving the invariant into the database removes the race window that application-level checks leave open.

  2. 2

    Per-SKU variant inventory

    Inventory is modelled per SKU rather than per product, tracking stock across the size × colour matrix. Product discovery, the cart and the admin views all read from that single source of truth.

  3. 3

    Payment integration

    Midtrans was integrated as the payment gateway, with the reservation step bound to the payment lifecycle so that stock is committed against a real transaction rather than an abandoned cart.

  4. 4

    Platform hardening

    The platform was secured using Row-Level Security, rate limiting, brute-force protection and secure password hashing. Review submissions run through a signed one-click email verification flow to prevent unauthorised posts.

Outcome

The platform was built and deployed from scratch, covering product discovery, variant inventory, cart and checkout, payments, order management and admin operations.

Need something similar?

Tell us the problem. The reply comes straight from the engineer who would build it.