[{"data":1,"prerenderedAt":317},["ShallowReactive",2],{"project-jerse-commerce":3},{"id":4,"title":5,"body":6,"description":169,"extension":300,"meta":301,"navigation":312,"path":313,"seo":314,"stem":315,"__hash__":316},"content\u002Fprojects\u002Fjerse-commerce.md","Jerse Commerce",{"type":7,"value":8,"toc":284},"minimark",[9,14,58,62,78,81,85,92,128,132,135,138,155,159,162,172,177,215,219,223,229,245,249,256,272,276],[10,11,13],"h2",{"id":12},"project-at-a-glance","Project at a Glance",[15,16,17,25,46,52],"ul",{},[18,19,20,24],"li",{},[21,22,23],"strong",{},"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.",[18,26,27,30,31,35,36,35,39,35,42,45],{},[21,28,29],{},"Deliverables:"," A fullstack football jersey e-commerce web application featuring league-based browsing (",[32,33,34],"code",{},"Bundesliga",", ",[32,37,38],{},"Premier League",[32,40,41],{},"LaLiga",[32,43,44],{},"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.",[18,47,48,51],{},[21,49,50],{},"Core Stack:"," Laravel 7, Livewire, MySQL, Bootstrap, Blade.",[18,53,54,57],{},[21,55,56],{},"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.",[10,59,61],{"id":60},"project-overview","Project Overview",[63,64,65,66,69,70,73,74,77],"p",{},"Jerse Commerce is a personal study and exploration e-commerce application built solo in ",[21,67,68],{},"2021"," to deepen practical skills in ",[21,71,72],{},"Laravel 7"," and ",[21,75,76],{},"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.",[63,79,80],{},"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.",[10,82,84],{"id":83},"interface-specimen","Interface Specimen",[63,86,87],{},[88,89],"img",{"alt":90,"src":91},"Jerse Commerce storefront home page showing hero banner, league filter cards for Bundesliga, Premier League, LaLiga, Serie A, and Best Product section","\u002Fimg\u002Fportfolio\u002Fjerse-commerce-home.jpg",[63,93,94],{},[95,96,97,98,101,102,105,106,109,110,113,114,35,116,35,118,35,121,123,124,127],"em",{},"Storefront Home: Top navigation with league dropdown (",[32,99,100],{},"List Jersey","), ",[32,103,104],{},"History",", reactive ",[32,107,108],{},"Keranjang"," badge, and user menu, followed by the hero banner, ",[32,111,112],{},"Pilihan Liga"," category cards (",[32,115,34],{},[32,117,38],{},[32,119,120],{},"LaLiga Santander",[32,122,44],{},"), and ",[32,125,126],{},"Best Product"," showcase.",[10,129,131],{"id":130},"context-the-problem","Context & The Problem",[63,133,134],{},"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\u002FjQuery 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.",[63,136,137],{},"The core learning and engineering objectives were:",[15,139,140,149,152],{},[18,141,142,143,73,145,148],{},"Build reactive UI flows (search, filtering, cart mutations, navbar badge sync) using ",[21,144,76],{},[21,146,147],{},"Blade"," without full page reloads.",[18,150,151],{},"Model a clean relational MySQL schema for leagues, jerseys, user accounts, carts, order line items (including optional nameset fields), and order history.",[18,153,154],{},"Implement end-to-end authentication, cart validation, and simulated manual-transfer checkout cleanly.",[10,156,158],{"id":157},"system-architecture","System Architecture",[63,160,161],{},"Jerse Commerce runs as a monolithic server-driven reactive web application powered by Laravel 7 and Livewire:",[163,164,170],"pre",{"className":165,"code":167,"language":168,"meta":169},[166],"language-text","+-------------------------------------------------------------------+\n|                   Browser (Bootstrap + Blade UI)                  |\n|         Livewire AJAX Diffing & Reactive DOM Morphing             |\n+---------------------------------+---------------------------------+\n                                  | Livewire XHR Requests\n+---------------------------------v---------------------------------+\n|                   Laravel 7 + Livewire Core                       |\n|  +--------------------+  +------------------+  +---------------+  |\n|  | Catalog, Search &  |  | Reactive Cart &  |  | Auth, Checkout|  |\n|  | League Filter      |  | Nameset Options  |  | & History     |  |\n|  +---------+----------+  +--------+---------+  +-------+-------+  |\n+------------|----------------------|--------------------|----------+\n             +----------------------+--------------------+\n                                    | Eloquent ORM\n+-----------------------------------v-------------------------------+\n|                      Primary Database (MySQL)                     |\n|      Users, Leagues, Products, Orders, Order Details (Nameset)    |\n+-------------------------------------------------------------------+\n","text","",[32,171,167],{"__ignoreMap":169},[173,174,176],"h3",{"id":175},"architectural-decisions","Architectural Decisions",[178,179,180,186,195],"ol",{},[18,181,182,185],{},[21,183,184],{},"Laravel 7 + Livewire for Server-Driven Reactivity:","\nLivewire 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.",[18,187,188,191,192,194],{},[21,189,190],{},"Bootstrap & Blade Component Templates:","\nBootstrap provided a clean, responsive grid and component baseline (",[32,193,112],{}," cards, product grids, modals\u002Fforms) so engineering effort could stay focused on backend logic and Livewire state synchronization.",[18,196,197,200,201,35,204,35,207,210,211,214],{},[21,198,199],{},"Normalized MySQL Schema with Eloquent ORM:","\nSeparating ",[32,202,203],{},"leagues",[32,205,206],{},"products",[32,208,209],{},"orders",", and ",[32,212,213],{},"order_details"," allowed a single cart\u002Forder lifecycle to cleanly transition from active cart state to confirmed order history while storing optional custom nameset attributes per line item.",[10,216,218],{"id":217},"engineering-challenges-solutions","Engineering Challenges & Solutions",[173,220,222],{"id":221},"_1-cross-component-cart-state-synchronization-in-livewire","1. Cross-Component Cart State Synchronization in Livewire",[63,224,225,226,228],{},"When a user adds a jersey from the product detail view or removes an item inside the cart page, the navigation bar's ",[32,227,108],{}," counter badge lives in a separate Livewire component and must reflect the updated total immediately without reloading the page.",[15,230,231],{},[18,232,233,236,237,240,241,244],{},[21,234,235],{},"Solution:"," Used Livewire's event system (",[32,238,239],{},"emit"," \u002F ",[32,242,243],{},"$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.",[173,246,248],{"id":247},"_2-modeling-custom-nameset-pricing-cart-to-order-transitions","2. Modeling Custom Nameset Pricing & Cart-to-Order Transitions",[63,250,251,252,255],{},"Football jersey orders can include optional custom name and back-number printing (",[32,253,254],{},"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.",[15,257,258],{},[18,259,260,262,263,265,266,268,269,271],{},[21,261,235],{}," Stored optional nameset metadata and computed line-item pricing directly on the ",[32,264,213],{}," table linked to a status-driven ",[32,267,209],{}," record. Upon checkout confirmation, the order transitions from draft\u002Fcart status to pending payment with a generated unique code and appears immediately under the user's ",[32,270,104],{}," page.",[10,273,275],{"id":274},"outcomes-key-learnings","Outcomes & Key Learnings",[15,277,278,281],{},[18,279,280],{},"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.",[18,282,283],{},"Established a strong foundation in Eloquent relational modeling, server-driven reactivity, and fullstack MVC architecture that carried forward into later production systems.",{"title":169,"searchDepth":285,"depth":285,"links":286},2,[287,288,289,290,291,295,299],{"id":12,"depth":285,"text":13},{"id":60,"depth":285,"text":61},{"id":83,"depth":285,"text":84},{"id":130,"depth":285,"text":131},{"id":157,"depth":285,"text":158,"children":292},[293],{"id":175,"depth":294,"text":176},3,{"id":217,"depth":285,"text":218,"children":296},[297,298],{"id":221,"depth":294,"text":222},{"id":247,"depth":294,"text":248},{"id":274,"depth":285,"text":275},"md",{"subtitle":302,"slug":303,"client":304,"year":305,"role":306,"category":307,"technologies":308},"Reactive Football Jersey E-Commerce Store","jerse-commerce","Personal Study Project",2021,"Solo Fullstack Developer","Web & Digital Applications",[72,309,310,311,147],"Livewire","MySQL","Bootstrap",true,"\u002Fprojects\u002Fjerse-commerce",{"title":5,"description":169},"projects\u002Fjerse-commerce","hKII1rzynDx_vTRVoqKpSUWbskaN6NDbpNy5wbihm5w",1796006984037]