Skip to content
AC Bang Amat — Service Website & CMS
Back to Portfolio
Business Website2026Fullstack Developer

AC Bang Amat — Service Website & CMS

A Next.js 16 website for an air-conditioner sales and service business, with WhatsApp ordering and a built-in admin CMS backed by MongoDB.

Next.jsReactTypeScriptMongoDBTailwind CSSshadcn/uiZodSentry
Overview

About This Project

AC Bang Amat is the website for an air-conditioner business that sells new and used units and offers cleaning, installation, repair, freon refills and maintenance plans. Visitors browse services, products, articles and testimonials and order directly through pre-filled WhatsApp messages, while an admin dashboard manages all of that content, site settings and users.
Challenge

The Problem

A small business needs content it can update itself — prices, stock, articles and contact details — without a heavy third-party CMS, while the site stays fast and secure. Admin access had to be properly gated, and edits had to show up on public pages immediately.
Solution

How We Solved It

I built it on the Next.js 16 App Router with a public (site) route group and a protected /dashboard. Sessions are HS256 JWTs signed with jose in an HTTP-only cookie, checked in the proxy and again in a server-side data-access layer that requires the admin role. Content lives in MongoDB collections, and server actions validate every create and update with Zod, then call revalidatePath so public pages refresh at once. The first registered account becomes admin and a seed action fills default homepage content, with Sentry for error monitoring and Docker, Helm and separate dev/prod Jenkins pipelines for deployment.
Flow

How It Works

  1. 1

    Land on the homepage

    A Next.js site presents the AC business with a hero, services, product catalog, articles, testimonials and contact details, read server-side from MongoDB.

  2. 2

    Browse services and products

    Dedicated pages list services with prices and AC units that can be filtered by condition (new or used) through a query parameter.

  3. 3

    Contact via WhatsApp

    Every call to action opens a wa.me link with a pre-filled message to the configured business number, so enquiries and orders continue in WhatsApp.

  4. 4

    Admin sign-in

    Staff sign in with email and password; sessions are signed JWT cookies (HS256, 7 days) and /dashboard routes require the admin role.

  5. 5

    Manage content

    The dashboard provides CRUD for services, products, articles, testimonials, users and site settings such as the WhatsApp number, plus a one-click seed for homepage content.

Features

Key Capabilities

💬

WhatsApp Ordering

Every service and product card opens WhatsApp with a pre-filled order message, plus a floating chat button.
❄️

Services & Product Catalogue

Service packages with starting prices, and new or used AC units with brand, PK rating and condition.
📊

Content CMS

Admin CRUD for services, products, articles and testimonials.
🛠️

Editable Site Settings

Hero copy, address, opening hours, WhatsApp number and stats editable from the dashboard.
🛡️

Role-Based Access

JWT sessions with admin and user roles enforced in the proxy and server-side, with user management.
📡

Error Monitoring

Sentry instrumentation across client, server and edge runtimes.
Gallery

Inside the Product

Homepage heroHero with the main value proposition, a WhatsApp order button and trust badges for certified technicians and warranty.
Product catalogNew and used AC units with brand, capacity (PK), price and a 'Tanya WA' button that opens a pre-filled WhatsApp chat.
Filter by conditionCatalog filtered to used units through the condition chips, which update the URL query.
Call to action and contactClosing WhatsApp and phone call to action above the footer with address, opening hours and site menu.
Admin loginSign-in page for the content dashboard; only admin accounts can open /dashboard.
Technical

Under the Hood

Frontend
Next.js 16 App Router with React 19 and the React Compiler, Tailwind CSS v4, shadcn/ui, lucide-react icons and Sonner toasts.
Backend
Server actions per dashboard section with Zod schemas, a MongoDB repository layer, bcrypt password hashing and jose-signed session cookies verified in the proxy and data-access layer.
Content Freshness
Each mutation revalidates the affected dashboard and public routes, so edits appear without a redeploy.
Delivery
Standalone Docker build with pinned pnpm, Helm values for dev and prod, separate Jenkins pipelines, and runtime config in Vault via External Secrets Operator.
Results

Impact & Outcomes

A self-managed site for a small business without a third-party CMS

One-tap WhatsApp ordering from every service and product card

Layered admin security with proxy plus server-side role verification

Dev and production pipelines with production error monitoring

Reflection

What I Learned

For small-business sites, the CMS is the product — content the owner can safely edit, validated server-side and revalidated instantly, matters more than another page. Checking authorization in both the proxy and the data-access layer keeps protected routes safe even if one layer is bypassed.

Other Projects