Jerse Commerce
Reactive Football Jersey E-Commerce Store

Project at a Glance
- Problem: Building reactive e-commerce interactions (such as live cart badge updates, dynamic league filtering, and custom product options) in traditional server-rendered Laravel apps often required either full page reloads or maintaining a separate JavaScript SPA stack.
- Deliverables: A fullstack football jersey e-commerce web application featuring league-based browsing (
Bundesliga,Premier League,LaLiga,Serie A), custom jersey nameset (name & back number) ordering, a reactive Livewire shopping cart, simulated unique-code manual bank transfer checkout, order history, and Laravel authentication. - Core Stack: Laravel 7, Livewire, MySQL, Bootstrap, Blade.
- Practical Value: Served as a hands-on 2021 personal study project to master server-driven reactive UI architecture with Laravel Livewire and relational e-commerce data modeling in MySQL without separating the frontend into a standalone SPA.
Project Overview
Jerse Commerce is a personal study and exploration e-commerce application built solo in 2021 to deepen practical skills in Laravel 7 and Laravel Livewire. Focused on football club jerseys, the storefront allows authenticated users to browse products by league, search the catalog, customize jersey orders with player names and back numbers (nameset), manage a live-updating cart, and complete a simulated checkout with unique payment codes and order history tracking.
Rather than integrating a third-party payment gateway, checkout was deliberately scoped to a simulated manual bank transfer workflow with unique transfer codes so the project could stay focused on core fullstack e-commerce fundamentals: relational order modeling, reactive component state, and server-side validation.
Interface Specimen

Storefront Home: Top navigation with league dropdown (List Jersey), History, reactive Keranjang badge, and user menu, followed by the hero banner, Pilihan Liga category cards (Bundesliga, Premier League, LaLiga Santander, Serie A), and Best Product showcase.
Context & The Problem
Early in my Laravel journey, implementing smooth storefront interactions like adding an item to the cart and immediately updating the header cart counter typically meant writing manual AJAX/jQuery handlers or introducing a separate frontend framework. At the same time, football jersey orders introduce domain-specific nuances such as optional custom nameset printing (name and number) that affect line-item pricing.
The core learning and engineering objectives were:
- Build reactive UI flows (search, filtering, cart mutations, navbar badge sync) using Laravel Livewire and Blade without full page reloads.
- Model a clean relational MySQL schema for leagues, jerseys, user accounts, carts, order line items (including optional nameset fields), and order history.
- Implement end-to-end authentication, cart validation, and simulated manual-transfer checkout cleanly.
System Architecture
Jerse Commerce runs as a monolithic server-driven reactive web application powered by Laravel 7 and Livewire:
+-------------------------------------------------------------------+
| Browser (Bootstrap + Blade UI) |
| Livewire AJAX Diffing & Reactive DOM Morphing |
+---------------------------------+---------------------------------+
| Livewire XHR Requests
+---------------------------------v---------------------------------+
| Laravel 7 + Livewire Core |
| +--------------------+ +------------------+ +---------------+ |
| | Catalog, Search & | | Reactive Cart & | | Auth, Checkout| |
| | League Filter | | Nameset Options | | & History | |
| +---------+----------+ +--------+---------+ +-------+-------+ |
+------------|----------------------|--------------------|----------+
+----------------------+--------------------+
| Eloquent ORM
+-----------------------------------v-------------------------------+
| Primary Database (MySQL) |
| Users, Leagues, Products, Orders, Order Details (Nameset) |
+-------------------------------------------------------------------+
Architectural Decisions
- Laravel 7 + Livewire for Server-Driven Reactivity: Livewire enabled interactive components (live search, cart quantity updates, and instant navbar badge refreshes) directly in PHP and Blade templates, avoiding the overhead of maintaining a separate REST API and frontend build pipeline for a focused study project.
- Bootstrap & Blade Component Templates:
Bootstrap provided a clean, responsive grid and component baseline (
Pilihan Ligacards, product grids, modals/forms) so engineering effort could stay focused on backend logic and Livewire state synchronization. - Normalized MySQL Schema with Eloquent ORM:
Separating
leagues,products,orders, andorder_detailsallowed a single cart/order lifecycle to cleanly transition from active cart state to confirmed order history while storing optional custom nameset attributes per line item.
Engineering Challenges & Solutions
1. Cross-Component Cart State Synchronization in Livewire
When a user adds a jersey from the product detail view or removes an item inside the cart page, the navigation bar's Keranjang counter badge lives in a separate Livewire component and must reflect the updated total immediately without reloading the page.
- Solution: Used Livewire's event system (
emit/$listeners) so cart-mutating components broadcast a cart-updated event upon database commit. The navbar component listens for the event and re-queries the authenticated user's active cart item count dynamically.
2. Modeling Custom Nameset Pricing & Cart-to-Order Transitions
Football jersey orders can include optional custom name and back-number printing (nameset), which changes the line-item subtotal, while an open cart must cleanly convert into an immutable order history entry with a unique transfer code upon checkout.
- Solution: Stored optional nameset metadata and computed line-item pricing directly on the
order_detailstable linked to a status-drivenordersrecord. Upon checkout confirmation, the order transitions from draft/cart status to pending payment with a generated unique code and appears immediately under the user'sHistorypage.
Outcomes & Key Learnings
- Built and published an open-source Laravel 7 + Livewire e-commerce study project covering league filtering, custom nameset ordering, reactive cart updates, simulated checkout, and order history.
- Established a strong foundation in Eloquent relational modeling, server-driven reactivity, and fullstack MVC architecture that carried forward into later production systems.