Skip to content
  • Vue
  • Nuxt
  • Tailwind CSS
  • PHP
  • Laravel
  • REST API
  • MySQL
  • WordPress
  • WooCommerce

Atlas Supply Co. sells home goods online and from two physical shops. Its software has to sell to customers across the country and run the shops themselves: the counter, the stock room and the orders in between.

The platform is a Laravel API with a Nuxt storefront and a separate Nuxt admin panel, sharing one database of products, stock and orders.

Challenge

Stock lived in three places: the website, a till system and a spreadsheet the warehouse kept by hand. A product sold at the counter was still for sale online, and every week someone reconciled the figures manually.

The catalogue itself was untidy: several supplier price lists, each with its own columns, spellings and gaps.

Approach

The shop had started on WordPress and WooCommerce; the existing products, customers and order history were migrated into the new platform rather than retyped.

The catalogue came first, because everything else leans on it. A repeatable import normalises each supplier file, detects duplicates and writes a report explaining what happened to every row.

The API, the storefront and the admin were kept as separate applications, so each can be deployed on its own while the business rules live in exactly one place: the API.

Solution

The Laravel API owns the catalogue, the stock ledger, orders, payments and deliveries. The storefront and the admin panel are both clients of it, with customer and staff accounts on separate authentication surfaces.

The browser sends product ids and quantities and nothing else; prices, discounts, delivery and totals are recalculated on the server. Stock is a ledger of movements rather than a number on the product row, so every figure can be explained.

Goals

  1. One stock figure for the website and the shops
  2. Guest checkout without an account
  3. A back office staff can run without a developer
  4. Never trust a price or a total sent by the browser
  5. Turn supplier price lists into one clean catalogue

Architecture

Three applications and one database. The API exposes a versioned REST interface under /api/v1; the storefront and the admin panel are separate Nuxt applications, each built and deployed independently.

Keeping the admin separate means its code and its authentication never ship to shoppers.

  • Laravel API with token authentication
  • Nuxt storefront, server-rendered for search and sharing
  • Nuxt admin panel behind staff roles
  • MySQL as the single source of truth

Technical decisions

The client never sends money. A delivery quote or a coupon check takes a basket, not a subtotal.

Order placement carries an idempotency key created once per basket, so a refresh or a dropped connection replays the original order instead of placing a new one.

07 total

Key features

  1. Repeatable catalogue import with duplicate detection and a row-by-row report

  2. Guest checkout with order lookup by order number and email

  3. Totals, coupons and delivery charges calculated only on the server

  4. Idempotent order placement, so a retry never creates a second order

  5. Point of sale sharing stock with the website

  6. Inventory ledger with locations, movements and purchase orders

  7. Role-based staff permissions and an activity log

09 total

  • Vue

    frontend

    Component-based interfaces: forms, tables and dashboards that stay fast as they grow.

  • Nuxt

    frontend

    Server-rendered Vue for sites that need to load quickly and be found by search engines.

  • Tailwind CSS

    frontend

    Utility-first styling driven by one set of design tokens.

  • PHP

    backend

    The language behind the back ends I build, written to modern, typed standards.

  • Laravel

    backend

    My main back-end framework: routing, validation, queues, authentication and the data layer.

  • REST API

    backend

    Versioned JSON APIs with one predictable response shape.

  • MySQL

    database

    Relational data modelling, indexing and queries that hold up with real volumes.

  • WordPress

    cms

    Content-managed websites with custom themes instead of heavy page builders.

  • WooCommerce

    cms

    Online stores on WordPress: catalogue, checkout and order handling.

One codebase in which the storefront, the back office, the counter and the stock ledger all read the same catalogue and the same numbers.

Related work

Have a project
in mind?

Let's talk.

Available for selected projects

Tell me what you are building and where it stands. I read every request myself and reply by email.