Back to Projects
REGISTRY / olympusfitness-lk
● ARCHIVED System Designer & Lead EngineerClient: Olympus Fitness Developed by iamkavinayan.com

OlympusFitness

High-performance digital presence and secure administration portal for a premier fitness center, featuring dynamic galleries, leaderboards, and training program management.

OlympusFitness showcase - Developed by Kavinayan
CORE WEB VITALS
95+
Lighthouse performance score via SSR
EXTERNAL SAAS DEPENDENCIES
0
Fully self-hosted custom CMS architecture

The Challenge & Objectives

The client required a dynamic platform to showcase their gym facility, trainers, and member transformation records. • The core objective was to build a high-performance public marketing site backed by a custom content management system (CMS) that their internal team could use to upload gallery images and manage training programs, without relying on third-party SaaS platforms.

Architecture & Engineering Decisions

• I architected a full-stack Next.js 16 (App Router) solution. The public-facing pages utilize React Server Components (RSC) to minimize client-side JavaScript execution, directly improving Core Web Vitals. • For the data layer, I integrated a MySQL database with Drizzle ORM to maintain strict type safety from the database schema up to the frontend UI components. • To secure the admin dashboard, I engineered a stateless JWT authentication system using the 'jose' library, bypassing the overhead of large auth frameworks. This enabled strict Role-Based Access Control (RBAC) enforced directly via Next.js middleware. • Furthermore, I implemented custom Node.js API routes for gallery and transformation image uploads, utilizing strict 'path.basename' sanitization to mitigate directory traversal vulnerabilities.

System Architecture Blueprint

Frontend Engine

Next.js 16 App Router

React Server Components (RSC) and Tailwind CSS with localized Framer Motion layout transitions.

Database & ORM

MySQL + Drizzle ORM

Fully typed relational schema for managing training programs, galleries, and member transformations.

Infrastructure

Contabo VPS / aaPanel

Self-hosted Node.js environment managed via PM2, routed through an Nginx reverse proxy.

Security Protocols

Custom JWT Auth & RBAC

Stateless HTTP-only session cookies, middleware role enforcement, and sanitized file upload handlers.

Production Interface Gallery

Click any photo to expand
OlympusFitness screenshot 1
Expand Fullscreen
OlympusFitness screenshot 2
Expand Fullscreen

Business Impact & Results

• The platform centralized the gym's digital asset management into a single, self-hosted tool, eliminating recurring external CMS subscription costs. • The RSC-first architecture lowered initial page load times, directly improving local search indexing and providing a seamless UX for prospective members browsing the facility and transformation galleries.

System Telemetry

Status
archived
Verified Views
882
Host Deployment
Ubuntu VPS / aaPanel
Target Domain
olympusfitness.lk

Technology Taxonomy

TypeScriptMySQLNext.js 16React 19Tailwind CSSFramer MotionDrizzle ORMPM2Nginx
Engineering Attribution

Architected, engineered, and maintained by Kavinayan. Discover all digital systems at iamkavinayan.com.

Commission Similar System

Looking to architect an enterprise web platform or custom client software?

Initialize Contact Relay →