Skip to main contentSkip to main content
Index:
05
Sector:
E-commerce & Retail
Type:
Web app
Year:
2025
Flora & Fable · E-commerce & Retail

Flora & Fable Floristry

Flora & Fable is a Glasgow florist that had outgrown its previous setup. The team needed an online shop that could handle postcode-based delivery across the city, seasonal collections, gift options and accurate stock through peaks like Valentine's Day, and they needed to run it themselves without a developer on call. We designed the brand and built a bespoke e-commerce site with a self-service admin dashboard behind it.Brand identity, bespoke e-commerce storefront, postcode delivery engine, and self-service admin dashboard for a Glasgow floristry business.

Read it your way. You are reading the plain-English version. Flip to Technical for how it is built.You are reading the technical version: architecture, integrations and engineering detail.

https://floraandfable.co.ukGGX
Flora & Fable Floristry, E-commerce & Retail project by Glasgow GFX

Flora & Fable Glasgow 2025

As beautiful as the flowers,and simple enough to run alone.

A Glasgow florist needed an online shop that knows which streets it can reach today, never sells a bouquet it does not have, and lets the team change anything themselves. We designed the brand and built the shop in twelve weeks. Every chapter below lets you try a piece of it.A bespoke Next.js 16 storefront on Supabase and Stripe: postcode to zone delivery with cut-off and slot capacity checks, atomic stock decrements under row-level locks, idempotent order creation and server-side repricing, all behind a four-role admin with row-level security on every one of its 15 tables. Each chapter below runs a small pure model of one of those pieces.
Oversold orders
0
Marketplace fees
0%
Weeks to launch
12
Self-service admin
100%

Chapter i The brief

They had outgrown the pot.

Flora & Fable had outgrown their previous setup. They needed a platform that could handle the full complexity of a modern floristry business: postcode-based delivery across Glasgow, seasonal and time-limited collections, gift customisation, discount management, and real-time stock accuracy during high-demand periods like Valentine's Day. The solution had to be as beautiful as the flowers, and simple enough for the team to manage without a developer on call.The requirements map onto four hard problems: a delivery engine that validates postcode, zone, cut-off and slot capacity on the server; stock that stays correct under concurrent checkouts; a checkout that cannot double charge on retries and never trusts a client-side price; and an admin that non-technical staff can run safely, which means role-based access enforced in the database, not just hidden buttons.

Order card

For Flora & Fable

  1. No. 1Postcode-based delivery across Glasgowsee ii
  2. No. 2Accurate stock through Valentine’s Daysee iii
  3. No. 3Gift options and discount codessee iv
  4. No. 4Seasonal and time-limited collectionssee v
  5. No. 5Run by the team, no developer on callsee v
  6. No. 6As beautiful as the flowerssee vi

Brand, shop and dashboard, in twelve weeks

Chapter ii Delivery

Will it reach them today?

Glasgow is not one delivery. A bouquet for the Merchant City can leave later than one for Newton Mearns, and some postcodes are simply too far for the vans. The shop works it out from the postcode while the customer types: the fee, whether it can still go today, and which time slots have room. Type a postcode and move the clock.Postcodes are normalised and split into outward and inward codes, the outward district is looked up in a zone table, and the zone carries the fee, the same-day cut-off and whether the evening run reaches it. Slots have a capacity per day; a same-day slot also needs prep time before its window closes. The client result is a hint. The server re-validates postcode, zone, cut-off and slot capacity at checkout and prices delivery from its own table.

A full postcode or just the first half. Try one of these:

Ordering on
At11:00
08:0018:00

Zone 2 · Inner Glasgow

G12 · West End

Yes, today.

Order before 13:00 for same-day delivery here.

Delivery
£7.50
  • Morning09:00 to 12:00too late today
  • Afternoon12:00 to 16:004 of 10 left
  • Evening16:00 to 19:007 of 10 left
River Clyde123G1G41G51G33G61G64G73G77G81NG12West End
  • City centre£5.00, same day by 14:00
  • Inner Glasgow£7.50, same day by 13:00
  • Outer Glasgow£10.00, same day by 12:00, no evening van

Schematic of Glasgow, not to scale. Sample zones, fees, cut-offs and bookings, for illustration.

Zone lookup trace
input       "G12 8QQ"
normalised  "G128QQ"   // upper case, spaces and dashes out
outward     G12   (area G, district 12)
inward      8QQ
lookup      DISTRICT_ZONES['G12'] → zone 2, fee 750p
cutoff      13:00, order at 11:00 → same day
slot        morning   too-late    booked 5/10  (now + 120m prep > end - 60m)
slot        afternoon open        booked 6/10
slot        evening   open        booked 3/10

The browser runs this for instant feedback only. At checkout the server repeats the parse, the zone lookup, the cut-off and the slot capacity check, and the fee it charges comes from its own table, never from the request. Every input is a Zod schema first.

Chapter iii Valentine’s Day

The Valentine’s rush.

Valentine's morning. Twenty bouquets left and a crowd pressing buy in the same second. Many online shops check the shelf, take the money, then update the count, and in that gap they sell the same bouquet to several people. Pick a shop, choose the size of the crowd, and open the doors.The classic lost update: a read-check-write across a payment round trip lets every concurrent request pass the stock check. The shop instead decrements under a row-level lock with a conditional update, so stock is checked and taken in one atomic step and can never go below zero. Orders carry an idempotency key, so a double click or a network retry returns the original order rather than charging again, and totals are recomputed server-side from database prices before the Stripe session is created.
Which shop
Shoppers pressing buy36

20 bouquets of The Red Edit left. 36 people about to press buy.

  • paying
  • bouquet
  • paid, no bouquet
  • sold out
  • charged twice
Same 36 shoppers, same 20 bouquets
MeasureThe old wayOur shop
Orders taken4120
Left on the shelf-210
Paid, but no bouquet160
Charged twice50
Told at once it had sold out016

Sample simulation with invented shoppers and timings, for illustration.

Request log, the old way
Open the doors to stream the requests.

You never sell a bouquet you do not have.

The old way looks at the shelf when you press buy, then takes your money a moment later. Everyone who pressed buy in that moment saw a bouquet that someone else was already paying for. Our shop takes the bouquet off the shelf at the very instant you press buy, one customer at a time, so the count can never go below zero. Press the button twice and you still get one order and one charge.

The old way: check, pay, then write
-- 1. Look at the shelf
SELECT stock FROM product_variants WHERE id = $1;   -- 3, fine

-- 2. Take payment (a second or so, while others read 3 too)

-- 3. Write the order
UPDATE product_variants SET stock = stock - 1 WHERE id = $1;
INSERT INTO orders (...) VALUES (...);  -- a retry is a new order
Our shop: checked and taken in one locked step
BEGIN;
SELECT stock FROM product_variants
 WHERE id = $1 FOR UPDATE;              -- row lock, others queue

UPDATE product_variants
   SET stock = stock - $qty
 WHERE id = $1 AND stock >= $qty
RETURNING stock;                        -- no row: sold out, roll back

INSERT INTO orders (idempotency_key, total_pence, ...)
VALUES ($key, $server_total, ...)       -- priced from the database
ON CONFLICT (idempotency_key) DO NOTHING
RETURNING id;                           -- a retry finds the first order
COMMIT;

Illustrative SQL showing the pattern, not the client’s schema.

Chapter iv Gifting

Make it a gift.

Most flowers bought online are for someone else. So the shop lets a customer choose the size, add a vase and gift wrap, write the card in their own words, pick where and when it arrives and use a discount code, all on one page, with the price adding up as they go. Build one.Product pages carry variants and add-ons, a sanitised card message with a hard length limit, a delivery slot and an optional coupon. The client only ever sends ids and choices; the server reprices from the database, validates the coupon's expiry, minimum spend and usage limit, zones the postcode and checks the slot, then opens a Stripe Checkout session with its own total. Confirmation emails go out through Resend with React Email templates.
Size
Vase
82 left
Delivering to
Time slot

Sample codes: FABLE10, WELCOME5, SPRING24.

Flora & Fable

Happy birthday, Mum. Thirty years of Sunday phone calls and I still want more.

with love

Classic bouquet
£56.00
Gift wrap and ribbon
£4.00
Handwritten card
Free
Delivery, zone 2, afternoon
£7.50
Total
£67.50

Sample sizes, prices and codes, for illustration.

What the browser sends to checkout
{
  "items": [
    {
      "variantId": "bouquet_classic",
      "addOns": [
        "gift_wrap"
      ],
      "cardMessage": "Happy birthday, Mum. Thirty years of Sunday phone calls and I still want more.",
      "quantity": 1
    }
  ],
  "delivery": {
    "postcode": "G12 8QQ",
    "slot": "afternoon"
  },
  "discountCode": null,
  "idempotencyKey": "c1e4…9b2f"
}

No prices travel from the browser. The server parses this with Zod, looks every id up, reprices the lines, re-validates the code against its expiry and usage limit, zones the postcode, checks slot capacity, and only then creates the Stripe Checkout session with its own total (6750 pence here). The cart itself lives in a persisted Zustand store, so it survives a refresh.

Chapter v The dashboard

The owner’s side.

The brief said the team had to run the shop without a developer on call. Seasonal collections, prices, stock, discount codes, orders, the gallery and the FAQs are all changed from one dashboard, and the shop front changes the moment they press the button. Each person gets their own login with only the powers their job needs. Try it, then switch roles.The dashboard sits behind Supabase Auth with four roles: owner, manager, staff and viewer. Roles are enforced twice: the UI hides what a role cannot do, and row-level security on all 15 tables refuses it at the database even if a request is crafted by hand. Collections, including scheduled and time-limited ones, are data the team edits rather than code, so publishing needs no deploy. Low-stock alerts and live revenue and order metrics sit on the same dashboard.
Flora & Fable · DashboardSigned in as the owner

The owner. Everything, including who else gets a login.

Collections

  • live
  • off
  • off

Products

  • The Plum Posy

    Everyday

    £42.00
    8
  • Hedgerow Hand-tie

    Everyday

    £56.00
    3
  • The Red Edit

    The Valentine's Edit, not on the shop

    £72.00
    20
  • Blush and Bow

    The Valentine's Edit, not on the shop

    £48.00
    12
  • First Light Tulips

    Spring Market, not on the shop

    £38.00
    15

Changes save straight away and show on the shop front.

A cut-down copy of the dashboard with a sample catalogue and prices, for illustration.

The shop front, as a customer sees it
Flora & FableShop
  • Everyday

    The Plum Posy

    £42.00

  • Only 3 left

    Everyday

    Hedgerow Hand-tie

    £56.00

Who can do what
ActionOwnerManagerStaffViewer
See orders and sales
Change stock, mark sold out
Change prices
Switch collections on and off
Create discount codes
Add and remove team logins

The four roles as built. Which tasks sit with which role is simplified here.

Enforced in the database, not just the UI
-- One of the policies on products (illustrative)
create policy "staff update stock only"
on product_variants for update
to authenticated
using  (auth_role() in ('owner', 'manager', 'staff'))
with check (
  auth_role() in ('owner', 'manager')
  or (price_pence = (select price_pence from product_variants v
                      where v.id = product_variants.id))
);

Illustrative policy, not the client’s schema. The pattern: a role claim resolved server-side, a using clause for which rows a role may touch and a with check clause for what it may write, so staff can change stock but a price change from a staff session fails at the database.

No developer needed.

New season, new collection: switch it on in the morning and it is in the shop window by the time the kettle boils. A bouquet runs out: one tap and nobody can order it. And because the Saturday florist cannot change a price by accident, the owner does not have to hover.

Chapter vi The shop as built

Pressed and framed.

We started with the brand: a logo in light and dark versions, a botanical palette of plum, tan and sage, and type that works the same on the shop, in the emails and on printed cards. Then every piece you have just played with was dressed in it. These are screens from the finished shop.Colours, type and spacing are reusable design tokens, exposed as CSS custom properties and consumed by Tailwind CSS 3.4, chosen to hold up the same on the storefront, in emails and in print. Interaction patterns are built with Framer Motion. Product and gallery images are served from Supabase Storage with signed URLs.
The Flora & Fable shop page on desktop: plum background, a serif Shop heading, collection filters and bouquet photographs
The Flora & Fable home page on a phone
A bouquet's product page on a phone, with its photograph, name, price and stock status

The palette

  • Plum
  • Plum light
  • Tan
  • Sage
  • Paper

What the brand includes

  • A logo in light and dark versions, for the web and for printLogo design with light and dark variations for web and print
  • A botanical colour palette and a set of typefaces to matchBotanical colour palette and typography system
  • Reusable building blocks, so every page looks like it belongsComponent design system with reusable tokens for consistent styling
  • Gentle movement on pages and buttons, never in the wayAnimated interaction patterns using Framer Motion

Screens from the finished shop at floraandfable.co.uk.

Results
0
Oversold orders
0%
Marketplace fees
12
Weeks to launch
100%
Self-service admin
  • 01The team changes products, orders, collections and pages themselves, from their own dashboard, with no developer to call.The team manages products, orders, collections, and content entirely through the dashboard, zero ongoing developer support needed
  • 02Customers see the delivery fee and choose a time slot from their postcode before they pay.Postcode-based delivery zones with time slot booking reduced delivery errors and customer service queries
  • 03Valentine's collections are set up in advance with stock limits and a checkout that cannot charge anyone twice.Scheduled Valentine's Day collections with stock safeguards and idempotent checkout ensured a smooth, high-confidence trading period
  • 04No bouquet is ever sold twice, even when lots of people buy at the same moment.Atomic stock operations with row-level locking eliminated overselling, even under concurrent demand
  • 05No marketplace fees: the customers and the orders belong to the shop.Zero marketplace fees, the business owns their entire customer relationship and revenue stream
Start a project like this

Need a web app?

If your business needs a web app like Flora & Fable Floristry's, tell us about it. We reply with a fixed written quote after a short discovery call, so you know the price before any work starts.

Web app from £8,000

Prices, timelines and what is included: Web app development in Glasgow.

Start a project like thisCall 0141 345 5841

Studio: Unit 204b, 36-38 Washington Street, Glasgow G3 8AZ. Phone 0141 345 5841.

Spec sheet

The architecture, integrations, performance numbers and code standards behind this project live in the technical version, for whoever looks after your IT.

Spec Sheet

Brand identity, bespoke e-commerce storefront, postcode delivery engine, and self-service admin dashboard for a Glasgow floristry business.

Architecture
Framework
Next.js 16 with React 19, App Router, and Turbopack
Database
PostgreSQL via Supabase with 15 tables, row-level security on every table
Authentication
Supabase Auth with four-tier RBAC, owner, manager, staff, viewer
State Management
Zustand with persistence for cart state and checkout progress
Styling
Tailwind CSS 3.4 with CSS custom properties, Framer Motion for animations
Validation
Zod schemas for all inputs, forms, API payloads, and environment variables
Integrations
Payments
Stripe Checkout with server-side price validation and idempotent order creation
Email
Resend with React Email templates for order confirmations and delivery notifications
Storage
Supabase Storage for product images and gallery content with signed URLs
Testing
Playwright end-to-end tests covering checkout, delivery, and admin workflows
Performance
Stock Integrity
Atomic operations with row-level locking, zero overselling under concurrent demand
Payment Safety
Idempotent order creation prevents duplicate charges, even during retries
Peak Readiness
Valentine's Day load tested, stock safeguards and checkout validated under pressure
Delivery Validation
Server-side postcode verification, zone calculation, and slot capacity checks
Code Quality
  • →TypeScript strict mode with noUncheckedIndexedAccess
  • →Row-level security on all 15 database tables
  • →Zod validation on every API input and form submission
  • →Playwright end-to-end test coverage for critical flows
  • →Immutable state patterns throughout with Zustand
  • →Server-side price validation, no client-trusted pricing
Technologies
  • Next.js 16
  • TypeScript
  • Supabase
  • Stripe
  • Tailwind CSS
  • Framer Motion
  • Zustand
  • Zod
  • Resend
  • Playwright

Questions about Flora & Fable Floristry

What did Glasgow GFX build for Flora & Fable?

Flora & Fable is a Glasgow florist that had outgrown its previous setup. The team needed an online shop that could handle postcode-based delivery across the city, seasonal collections, gift options and accurate stock through peaks like Valentine's Day, and they needed to run it themselves without a developer on call. We designed the brand and built a bespoke e-commerce site with a self-service admin dashboard behind it.

How is it built, in plain terms?

A custom online shop with card payments through Stripe, a managed database behind the orders, and safeguards so a product cannot be sold twice during a rush.

What changed for Flora & Fable?

Zero oversold orders, zero marketplace fees, and a shop the team runs entirely through its own dashboard.

How long did the project take?

12 weeks.

How much does a web app like this cost?

Web app projects start from £8,000. We reply with a fixed written quote after a short discovery call, so you know the price before any work starts.

Where is Glasgow GFX based?

Our studio is at Unit 204b, 36-38 Washington Street, Glasgow G3 8AZ, and we work with businesses across the UK. Phone 0141 345 5841.

Next Project

Bedtime & West

An Astro site with React islands for a light and sound art duo: festival footage under three audio-reactive WebGL shaders, a Howler soundtrack split into bass, mid and treble bands that drive the visuals, and installation content kept as typed, schema-checked files.

Bedtime & West, Immersive Art & Festivals project by Glasgow GFX

Have a project?

Websites, web apps and bespoke software for businesses across the UK, built in Glasgow. Tell us what you need and we will come back with a fixed written quote after a discovery call.

Glasgow GFX Studio

Visit
The Pentagon Business Centre
Unit 204b, 36-38 Washington Street
Glasgow G3 8AZ
Hours
Mon to Fri 9:00 to 18:00
Sat 10:00 to 18:00
Sun closed
Clients
Web and software clients across the UK, from the Washington Street studio in Glasgow.