All projects

Case study — 09 / 27

VALORBOOST // Store

A frontend prototype for a gaming storefront covering account sales, digital items, and a configurable rank boost calculator.

Category
Web App
Engagement
Personal
Year
2026
Core stack
Next.js, Tailwind CSS, Framer Motion
Next.js 16 (Pages Router) · React 19 · TypeScript · Tailwind CSS · Framer Motion
01

Overview

VALORBOOST // Store is a frontend prototype for a gaming platform that combines account trading, digital item sales, and rank boosting services.

Clients browse game accounts and digital items by game, configure a rank boost order with add-ons and duo options, and check out — all within a clean storefront experience. An admin panel lets operators manage the full catalog: games, tier ladders, inventory, item stock, boost rate matrices, and order status.

All state lives in a shared localStorage store seeded from mock data, so both the client storefront and admin panel stay in sync across tabs. The data contracts map directly to database tables, making the transition to a real backend a matter of replacing the store actions with API calls.

02

Role & contribution

Delivered a fully interactive gaming storefront prototype that demos the complete buy and admin workflow with no backend, with contracts ready for direct database mapping.

  1. 01Built the client storefront: home with game selector, rank boost calculator, account and item catalogue with tabbed views, and checkout flow.
  2. 02Implemented the boost pricing engine: base price × rank-gap multiplier, plus duo and add-on percentages that sum without compounding.
  3. 03Developed the admin panel with pages for games, tier ladders, regions, add-ons, inventory, items, boost rate matrices, and order management.
  4. 04Wired a shared localStorage store that persists state across both client and admin route groups, including sold-account tracking and order history.
  5. 05Added an HTTP Basic auth gate on the admin routes via Next.js middleware, with configurable credentials via environment variables.
  6. 06Included a WhatsApp order alert link configurable by environment variable.
03

Key features

  1. 01

    Rank Boost Calculator

    Pricing engine computes boosts from configurable per-division base prices, with duo and add-on percentages summed (not compounded) on the subtotal.

  2. 02

    Full Admin Panel

    Operators can configure games, tier ladders, regions, add-ons, inventory, digital items, boost rate matrices, and order statuses from the admin panel.

  3. 03

    Cross-Tab State Sync

    A single shared localStorage store keeps the client storefront and admin panel in sync, including sold-account tracking across open tabs.

  4. 04

    Backend-Ready Contracts

    Game, RankTier, Account, ShopItem, Order, and BoostRate types map directly to MySQL table shapes, so Prisma models can reuse the field names.

  5. 05

    Admin Auth Gate

    Next.js middleware enforces HTTP Basic auth on all admin routes, with username and password configurable via environment variables.

04

Core modules

Client Home
Landing page with a game selector that filters the boost and catalog experience by game.
Boost Calculator
Interactive rank boost configurator: select current and target rank, toggle duo, choose add-ons, and see a live price breakdown.
Catalog
Tabbed view showing available game accounts and digital items with per-game and per-category filtering.
Checkout
Order summary and mock checkout flow; buy buttons on catalog cards open the same flow in a modal.
Admin Games
Manage games, tier ladders, regions, add-ons, and item categories.
Admin Inventory
Create, edit, and delete game accounts available for purchase.
Admin Items
Manage digital items sold from stock, organized by game and category.
Admin Rates
Boost rate matrix editor for setting base prices per rank division gap.
Admin Orders
Order list with a status switcher for tracking and fulfillment management.
05

Architecture

Architecture Type
Next.js Pages Router SPA with two route groups (client, admin) sharing a single Zustand-style localStorage store.
Database Design
localStorage as a mock database, seeded from mockData.ts. Types map to MySQL tables for a direct Prisma migration path.
Security Features
HTTP Basic auth on admin routes via Next.js middleware; password and username set via environment variables. No real payment or credential collection.
Deployment
Standard Next.js build; admin routes return 503 without ADMIN_PASSWORD set, enforcing auth in production.
State Management
Shared in-module store in src/lib/store.ts with actions used by both route groups; localStorage persistence keeps state across page reloads and tabs.
06

Challenges & solutions

  1. 01

    Pricing model with non-compounding add-ons

    Implemented a boost pricing formula where duo and add-on percentages sum and apply to the base subtotal once, preventing compounding inflation while remaining configurable per game.

  2. 02

    Sold-account tracking across tabs

    Used a shared localStorage store so that when a client purchases an account in one tab, the admin panel and other open tabs immediately reflect the updated stock without a backend.

  3. 03

    Admin auth without a session system

    Wired HTTP Basic auth in a Next.js proxy middleware so the admin section is protected in production without requiring a full session implementation.

07

Outcomes & impact

  1. Full storefront prototype, no backend

    Complete buy flow — browse, calculate, checkout — plus a full admin management suite, running with no server.

  2. Direct database migration path

    Data types map directly to relational table shapes, so the backend transition requires only replacing store actions with API calls.

  3. Configurable via environment variables

    Admin credentials and WhatsApp order alerts are environment-driven, making production setup straightforward.

08

Roadmap

  1. Phase 1 - Frontend PrototypeShipped

    • Client home and game selector
    • Rank boost calculator with pricing engine
    • Account and item catalogue with checkout
    • Admin panel: games, inventory, items, rates, orders
    • Shared localStorage store with cross-tab sync
    • HTTP Basic auth gate on admin routes
  2. Phase 2 - Backend & Production (Planned)Planned

    • REST API with Prisma and MySQL
    • Move pricing to server (prevent client-side manipulation)
    • Real payment provider integration
    • Object storage for account thumbnails
    • Session-based admin auth replacing Basic auth
    • Webhook for order notifications
09

Tech stack

  • Next.js 16 (Pages Router)
  • React 19
  • TypeScript
  • Tailwind CSS
  • Framer Motion
  • Lucide React
  • localStorage
Next projectFloral Boutique E-Commerce PlatformFull-stack e-commerce and admin platform for a Cebu-based florist.