Skip to content
Swarna Tactical — Storefront
Back to Portfolio
E-commerce2025 – PresentSoftware Engineer (Freelance)

Swarna Tactical — Storefront

The main Swarna Tactical e-commerce storefront and tactical-gear management platform.

ReactNext.jsTailwind CSSShadcn UINode.jsMySQLMongoDB
Overview

About This Project

Swarna Tactical is the flagship storefront I develop and maintain for the Swarna group — a full-stack platform powering e-commerce operations and tactical gear management.
Challenge

The Problem

The store needs a fast, responsive shopping experience, reliable payment flows, and infrastructure that stays available and secure without a dedicated ops team.
Solution

How We Solved It

I built a responsive storefront with React.js, Next.js, Tailwind CSS, and Shadcn UI, backed by Node.js and PHP services with third-party payment integration, deployed on Vercel and Cloudflare with CI/CD.
Flow

How It Works

  1. 1

    Choose a store and browse

    First-time visitors pick between the firearms-accessories store and the tactical apparel store, which lives on its own domain. Shoppers then browse by category, gun, brand, promotion or search, and every list comes from the shared Express API over MongoDB.

  2. 2

    Catalogue synced from the POS

    Products and outlet inventory are pulled from the DealPOS point-of-sale system into a staging area. Admins link and publish staged items in the Next.js admin dashboard, which also manages banners, categories, brands, vouchers, promos and membership tiers.

  3. 3

    Account and cart

    Customers register or sign in with OTP verification or Google. Requests are authorised with JWT plus Casbin role-based policies, and the cart and saved items are stored per account on the backend.

  4. 4

    Server-verified checkout

    At checkout the backend recalculates everything instead of trusting the browser. Shipping rates come from Biteship, with an in-store pickup option, and manual vouchers, automatic vouchers and membership-tier discounts are all computed server-side.

  5. 5

    Payment with stock reservation

    Stock is reserved before a Midtrans Snap payment is created, so items cannot be oversold, and repeated submits return the existing payment. If creating the payment fails, the reserved stock is released.

  6. 6

    Settlement via webhook

    The Midtrans server-to-server notification, checked by its signature, is the source of truth for payment. On settlement the order moves to processing, voucher usage and stock are committed, membership accrual runs and a DealPOS invoice is queued; expired or cancelled payments release the stock.

  7. 7

    Fulfilment and after-sales

    Admins create the Biteship shipment or enter an external tracking number, and customers follow tracking through Binderbyte from their order history. The dashboard also handles refunds through Midtrans, cancelling or replacing individual items, and collecting or refunding any price difference.

Features

Key Capabilities

🛒

Responsive Storefront

Modern shopping UI built with React, Next.js, Tailwind, and Shadcn UI.
💳

Payment Integration

Third-party payment gateway integrated into the backend.
🎯

Gear Management

Tools to manage the tactical gear catalogue.
☁️

Cloud & CI/CD

Hosted on Vercel and Cloudflare with automated pipelines.
Gallery

Inside the Product

HomepageStorefront homepage with the managed banner carousel and main navigation for firearms, categories, guns, brands and promotions.
ShopCatalogue with category filters, search, sorting and pagination across more than two thousand products.
Product categoriesCategory index with nested sub-categories, including the Shop by Guns tree.
Product detailProduct page with brand, SKU, price, variant options, stock status, add to cart and wishlist.
PromotionsPromotions hub listing the active campaign and bundle promo groups.
ProcurementProcurement page for institutions and companies that need formal quotations for tactical equipment.
Sign inCustomer sign-in with username and password or Google.
Technical

Under the Hood

Frontend
React.js, Next.js, Tailwind CSS, and Shadcn UI.
Backend
Node.js and PHP with payment gateway integration over MySQL and MongoDB.
Cloud
Vercel and Cloudflare with CI/CD automation.
Results

Impact & Outcomes

Delivered a full-stack e-commerce storefront for the Swarna brand

Integrated payments and kept the platform available and secure

Reflection

What I Learned

Owning a storefront end-to-end reinforced that a maintainable frontend and dependable infrastructure matter more than premature complexity.

Other Projects