BNB Fabrics
LiveA full e-commerce platform for an Australian textile retailer — storefront, Stripe and PayPal checkout, inventory with stock thresholds, order management, and a role-based admin for staff.
The problem
A fabric retailer needs more than a catalogue. The shop has to take payment, keep stock honest, and let staff with different responsibilities work in the same system without being able to break each other's work.
Off-the-shelf shop software can do the first part. What the business needed was an arrangement that matched how it actually handles stock and orders, run by people who are not developers.
What I built
A complete e-commerce platform for an Australian textile retailer, live at its own domain, with a handmade subdomain alongside it.
- Storefront with search, categories and product listings, including product photos uploaded by staff.
- Checkout with Stripe and PayPal, so customers choose how they pay.
- Inventory with stock thresholds, so low and out-of-stock items are flagged before an order cannot be filled.
- Order management for the people packing and following up orders.
- Role-based admin, so a staff member sees and changes only what their job needs.
How it works
It is a custom PHP application on MariaDB, served by PHP-FPM behind nginx. Customer-facing pages and the staff admin are separate concerns with separate permissions.
- Payment processing sits with Stripe and PayPal, not with a home-grown card form, which keeps the shop's own security duties small.
- Roles decide what staff can see and do in the admin, so day-to-day work does not need full access.
- Hosting is containerised. The PHP runtime, the web server and the database each run in their own container on a private network, and the site is published through a Cloudflare tunnel, so the host has no inbound ports for it.
- Backups cover the database and the uploaded images, because a shop that restores its orders but loses its product photos is still broken.
What I learned
A shop is mostly failure paths. The happy path of a sale is easy. The work is in the half-paid order, the item that sold out while someone was in the basket, and the refund that has to be explained to a customer.
Stock numbers are a trust problem. Thresholds only help if staff believe the count, so the system is built to make the number correct rather than to make it look correct.
Moving a live shop is mostly about permissions. When I moved it onto a new container stack, the site loaded but uploaded images did not: the files were readable by the old group but not by the new web server's user. It was a two-minute fix once I knew, and a good reminder to test the uploads path first, not last.