Skip to content
Dew It — Bodycare Storefront
Back to Portfolio
E-commerce2019 – 2020Frontend & Fullstack Web Developer

Dew It — Bodycare Storefront

A brand site for bodycare label Dew It, first built at Label Ideas & Co and later rebuilt into a full Laravel + Vue (Inertia) storefront with cart, checkout, accounts and an admin panel.

LaravelVue.jsInertia.jsPHPMariaDBViteDockerJenkins
Overview

About This Project

Dew It is a bodycare brand built around three rituals — Body Water Oil for the shower, Body Polish on the go and Body Mask before bed. I first built its brand website at Label Ideas & Co with PHP, Bootstrap, jQuery and Slick, then later migrated it to Laravel and extended it into a full storefront with product pages, a persistent bag, checkout, customer accounts and an admin panel for products, orders, messages and newsletter subscribers.
Challenge

The Problem

The original site was a set of PHP includes with hard-coded paths and a placeholder contact handler — it couldn't sell anything. Turning it into a store meant keeping the brand's look and feel while adding commerce logic the browser can't tamper with (prices, stock, totals) and a cart that works for both guests and signed-in users.
Solution

How We Solved It

I first ported the pages to Blade with a test suite guarding against leftover PHP artefacts, then rebuilt them as Vue 3 pages served through Inertia. An OrderService places orders inside a database transaction, locking product rows, re-reading prices and stock from the database and decrementing stock atomically, with a signed URL for the confirmation page. The cart lives in localStorage for guests and syncs to the server with a debounce once a user signs in. Admin routes sit behind auth and admin middleware with rate-limited write endpoints, and the app ships as a multi-stage Node + php-apache image via Jenkins.
Flow

How It Works

  1. 1

    Discover the brand

    Visitors land on an Inertia + Vue storefront served by Laravel, with the hero, daily-ritual product picks, brand story and community sections.

  2. 2

    Browse and inspect products

    The shop lists products filterable by ritual (in the shower, on the go, before bed); each product page is resolved by slug with description, usage notes and related items.

  3. 3

    Fill the bag

    Quick-add and product-page buttons update a bag drawer. Guests keep the bag in localStorage; signed-in users have it synced to the server through a debounced PUT /cart.

  4. 4

    Check out

    The checkout form validates customer and address fields; OrderService locks the products, checks stock, recomputes the subtotal from database prices and creates a pending order in one transaction, then redirects to a signed confirmation URL.

  5. 5

    Account and order history

    Customers can register or sign in to keep their bag across devices, follow their orders and update profile or password.

  6. 6

    Admin back office

    Admin users manage products, orders and their status, contact messages and newsletter subscribers from a separate dashboard.

Features

Key Capabilities

✨

Product Rituals

Catalogue and detail pages per product with benefits, usage steps and Rupiah pricing.
🛍️

Persistent Bag

Guest cart in localStorage, synced to the server for signed-in users, with quantity clamping and a fly-to-cart animation.
🛒

Server-Trusted Checkout

Prices and stock always read from the database inside a locked transaction, with per-item stock errors.
👤

Customer Accounts

Registration, login, order history, and profile and password updates.
📊

Admin Back Office

Dashboard plus management of products, order status, contact messages and newsletter subscribers.
🪄

Accessible Motion

Scroll reveals, count-ups and cart animations that respect reduced-motion preferences.
Gallery

Inside the Product

Homepage heroBrand landing page with the 'Believe it. Dew it.' hero, a featured product card and a scrolling ritual ticker.
Daily ritualsThree products mapped to moments of the day, each with price and a quick add-to-bag button.
Product detailProduct page with large visual, price, quantity stepper, add-to-bag action and expandable product information.
Bag drawerSlide-in bag with per-item quantity controls, remove links, subtotal and a checkout button.
CheckoutGuest checkout form beside an order summary; prices and stock are re-checked on the server when the order is placed.
Shop pageProduct listing with ritual filters and a product count.
About pageBrand story page explaining the idea behind the product line.
Press and community'Explore it' page with community photos and press features.
Contact formContact page with a validated enquiry form, email and location details.
Sign inCustomer sign-in that keeps the bag on every device and unlocks order history.
Technical

Under the Hood

Backend
Laravel with Inertia; controllers for pages, cart, checkout, account, contact and newsletter, plus an Admin namespace. CartService and OrderService hold the commerce rules.
Frontend
Vue 3 single-file pages and layouts built with Vite; composables for cart, toasts and form status, with IntersectionObserver and Web Animations API motion helpers.
Data Integrity
MariaDB with products, cart items, orders and order items; order placement uses lockForUpdate, snapshots product name and unit price per line, and restores stock on cancellation.
Delivery & Quality
Feature tests for pages, auth, account, checkout, admin, contact and newsletter; multi-stage Docker build (node + php-apache) deployed via Jenkins to Kubernetes.
Results

Impact & Outcomes

Delivered the original on-brand website for Dew It

Turned a static brand site into a working storefront with checkout and order management

Tamper-proof prices and stock decided server-side in locked transactions

Every customer and admin flow covered by feature tests

Reflection

What I Learned

A brand site and a store have different trust boundaries — anything the browser sends (prices, totals, quantities) is only a suggestion. Porting the markup first with regression tests, then rebuilding the UI, kept the migration safe.

Other Projects