Skip to content
EAD Collection — Commerce & Hospitality Demos
Back to Portfolio
Web Application2026Fullstack Developer

EAD Collection — Commerce & Hospitality Demos

Two practicum modules rebuilt into polished, working demos — EAD Supply (a tech store) and EAD Stay (hotel booking) — backed by PHP and SQLite.

PHPSQLiteJavaScriptHTMLCSSDockerJenkins
Overview

About This Project

EAD Collection turns coursework modules into two portfolio-ready digital experiences. EAD Supply is a tech-accessories store with catalogue, search, filters, bag and checkout; EAD Stay is a hotel site with room selection, add-ons, a live price summary and a reservation list that survives a refresh. An editorial showcase page ties the two together.
Challenge

The Problem

The original modules had forms that didn't persist anything, inconsistent price and duration maths, broken booking handlers and mismatched catalogue rows. The rebuild had to make the demos behave like real flows without pretending to be a live shop or hotel — no payments, accounts or real inventory.
Solution

How We Solved It

I redesigned both demos with distinct visual identities — charcoal, off-white and lime for EAD Supply; cream, brown and serif type for EAD Stay. A small PHP bootstrap provides the catalogue, sessions, a random per-browser identity cookie and an auto-created SQLite database. The store's JSON API takes prices only from the server catalogue, uses a single-use checkout token to make orders idempotent and caps demo orders per browser. Hotel bookings are priced server-side from check-in/out dates, room capacity and add-ons, scoped to the browser identity and cancellable, with CSRF tokens and parameterized queries throughout.
Flow

How It Works

  1. 1

    Choose an experience

    A showcase page introduces the two demos, EAD Supply (commerce) and EAD Stay (hospitality), each with its own visual identity.

  2. 2

    Browse the EAD Supply catalog

    The catalog is loaded from a PHP endpoint and can be searched, filtered by category and availability, and sorted by price or name on the client.

  3. 3

    Build a bag

    Products open in a detail dialog and are added to a bag stored in localStorage, where quantities (1–10) can be adjusted or items removed.

  4. 4

    Demo checkout

    Checkout posts the bag to api.php, which re-prices items from the server catalog, checks a CSRF token and a one-time checkout token, and saves the order to SQLite so resubmits never create duplicates.

  5. 5

    Plan a stay at EAD Stay

    Guests pick dates, room type, guest count and extras; a live summary recalculates nightly rate × nights plus once-per-stay extras as the form changes.

  6. 6

    Confirm and manage reservations

    The server recomputes duration and price (1–30 nights, room capacity limits), stores the booking in SQLite tied to a random browser cookie, and lists it under My reservations with a cancel option.

Features

Key Capabilities

🔍

Searchable Catalogue

Search, category and availability filters, price sorting and product detail dialogs.
🛒

Bag & Idempotent Checkout

localStorage cart with a server-issued reference and total; single-use tokens prevent duplicate orders.
📅

Live Booking Summary

Room type, guests, dates and add-ons update the price instantly, recomputed on the server at submit.
🛏️

My Reservations

Per-browser reservation list with detail view and cancellation.
♿

Accessible, Responsive UI

Native dialogs, empty and error states, mobile nav, focus handling and reduced-motion support.
Gallery

Inside the Product

Project showcaseEntry page presenting EAD Supply and EAD Stay side by side, with the stack each demo uses.
EAD Supply homeCommerce landing page in a charcoal, off-white and lime identity, leading into the product collection.
Product collectionCatalog with category chips, search, sort menu, availability toggle and a live result count.
Filtering and sortingKeyboard category sorted by lowest price; sold-out items stay visible but cannot be added.
Product detail dialogNative dialog with product illustration, brand, model, description, price and an add-to-bag action.
Shopping bagSlide-in bag with quantity steppers, remove buttons and a demo total; prices are re-verified on the server at checkout.
EAD Stay homeHospitality landing page in a cream and brown serif identity with a quick date and guest search.
Room selectionThree room types with nightly rate, bed setup and capacity, each linking to a pre-filled booking form.
Booking form with live summaryDates, room, guests and extras on the left; the summary recalculates rate × nights plus extras into a demo total in real time.
My reservationsReservation list scoped to the visitor's browser, shown in its empty state with links to plan a stay.
Technical

Under the Hood

Backend
Plain PHP 8.2 with a shared bootstrap for catalogue, session and SQLite via PDO; a JSON API for the store and server-rendered PHP pages for the hotel.
Frontend
Static HTML with vanilla JavaScript modules for the store and the hotel, styled by one shared stylesheet with two responsive themes.
Safety
CSRF tokens, parameterized queries, output escaping, strict input validation, per-browser order caps and .htaccess rules blocking app/ and storage/.
Delivery
Docker image with SQLite and mbstring and a persistent storage volume, deployed by a Jenkins pipeline to Kubernetes.
Results

Impact & Outcomes

Replaced non-persisting forms with working, persisted flows

Fixed pricing, duration and validation bugs from the original booking handlers

Layouts verified at 320, 390, 768 and 1440 px

Packaged as a deployable container

Reflection

What I Learned

Even a demo earns credibility when the server owns the numbers — idempotent checkout and server-computed totals cost little and remove a whole class of bugs. Being explicit about what is a demo is part of good UX.

Other Projects