A high-fashion brutalist e-commerce platform bridging luxury editorial aesthetics with enterprise web architecture.
- Project Overview
- Key Features
- Architecture & Flow Overview
- Project Directory Structure
- Quickstart & Setup Guide
- Comprehensive REST API Reference
- Production Deployment Guide
- Production Milestone Checklist
- License & Authors
VibeLane is a fully completed, production-ready, full-stack e-commerce platform that reimagines online fashion retail through the lens of Swiss typography and brutalist editorial design.
Traditional e-commerce templates rely on generic, repetitive grids. VibeLane distinguishes itself with:
- Kinetic Typography Reveals: Masked overflow letter-by-letter animations governed by custom cubic-bezier curves.
- Asymmetric Staggered Lookbooks: Editorial editorial layouts combining multi-row and multi-column spans with dual-angle hover crossfades.
- Sub-Millisecond Response Times: Redis caching tier shielding a relational Supabase PostgreSQL database.
- Enterprise-Grade Admin Suite: Live order lifecycle management, gross revenue tracking, customer metrics, and role-based access control (RBAC).
- Cloud-Resilient Communication: Transactional OTP email dispatch powered by the Resend HTTP API, engineered specifically for zero-port-blocking cloud environments like Render.
- Masked Kinetic Typography (
HeroTitle.jsx,BagTitle.jsx):- Viewport-scaling typography (
text-[19.8vw]) set in Swiss Neo-Grotesque (Inter Tight 900). - Staggered randomized character reveals animating upward through overflow masks (
cubic-bezier(0.16, 1, 0.3, 1)). - Self-drawing horizontal structural divider rules.
- Viewport-scaling typography (
- Editorial Lookbook Grid (
Lookgrid.jsx):- Dynamic aspect ratios (
aspect-[3/4],aspect-[4/5]) across a responsive CSS grid. - Dual-Angle Perspective: Instant crossfade between primary look and alternate perspective on hover.
- Kinetic Left-to-Right Underlines: Word-fitted pseudo-element underlines expanding seamlessly across card and link hover (
group-hover:after:w-full). - Interactive Taxonomy: Instant client-side category filtering with live badge counters.
- Scroll-Triggered Reveals: Framer Motion viewport animation triggers (
whileInView).
- Dynamic aspect ratios (
- Inertial Smooth Scrolling (
lenis/react):- Native wheel and touch physics interpolation (
lerp: 0.09,wheelMultiplier: 1.1).
- Native wheel and touch physics interpolation (
- Cinematic Experience Enhancements:
- Branded Boot Screen (
SplashScreen.jsx): Minimalist intro loader on first entry. - Route Transition Loader (
RouteTransitionLoader.jsx): Elegant progress indication during SPA page transitions. - Scroll-To-Top Synchronization (
ScrollToTop.jsx): Consistent coordinate resets on route changes. - Brand Manifesto & Legal Architecture (
Manifesto.jsx,Privacy.jsx,Terms.jsx): High-impact editorial brand storytelling and structured legal documentation.
- Branded Boot Screen (
- Dynamic Product Detail (
ProductDetail.jsx):- Deep-linkable dynamic routes (
/products/:slug). - High-resolution dual image inspection, availability indicators, and instant bag addition.
- Deep-linkable dynamic routes (
- Reactive Shopping Bag (
Bag.jsx):- Global state synchronization via React Context (
AppContext.jsx). - Real-time subtotal calculations, dynamic quantity adjustments, and kinetic empty-state messaging.
- Global state synchronization via React Context (
- Streamlined Checkout Pipeline (
Checkout.jsx):- Customer shipping detail capture, order summary itemization, and simulated multi-method payment verification.
- Authenticated Customer Portal (
Account.jsx,Orders.jsx):- Profile inspection and updating.
- Customer order archive with real-time status tracking (
Processing,Confirmed,Shipped,Delivered,Cancelled).
- Admin Dashboard (
/admin,AdminDashboard.jsx):- Financial Metrics: Real-time Gross Revenue calculation across all transactions.
- Volume & Fulfillment Counts: Order state distribution graphs and counts.
- Customer Reach: Real-time tally of unique verified customer accounts.
- Recent Orders Stream: Instant glance at latest placed orders.
- Order Operations Center (
/admin/orders,AdminOrders.jsx):- Multi-state filtering: view orders by
All,Processing,Confirmed,Shipped,Delivered, orCancelled. - In-place order status updating with automatic database synchronization and instant Redis cache busting.
- Detailed line-item modal breakdown displaying shipping addresses, email contacts, and purchased item quantities.
- Multi-state filtering: view orders by
- Strict Role-Based Access Control (RBAC):
- Frontend guard via
<AdminRoute />. - Backend authorization via
protectandauthorizeAdminmiddleware validating JWT claims.
- Frontend guard via
- Modern ES Module Architecture:
- Clean layered separation:
controllers/,routes/,services/,middleware/,config/, andutils/. - Standardized JSON responses via
ApiResponseand operational error handling viaAppError.
- Clean layered separation:
- Relational Cloud Persistence (Supabase PostgreSQL):
- Tables for
products,users,orders, andotp_verifications. - B-tree indexing on
slug,category,price,user_id, andcreated_at. - Row Level Security (RLS) configured for safe read access and authenticated administrative updates.
- Tables for
- Multi-Tier In-Memory Caching (
ioredis):- Caches product catalogs, filtered categories, and individual slugs with configurable TTLs.
- Automatic cache invalidation upon administrative order and product mutations.
- Non-blocking lazy connection with exponential backoff: server boots and operates with zero disruption if Redis is offline.
- Seamless in-memory fallback catalog if remote database credentials are missing.
- Cloud-Native Email Protocol (Resend HTTP API):
- Replaces traditional SMTP (ports 25, 465, 587) with Resend's REST API over HTTPS (Port 443).
- Eliminates cloud firewall packet dropping on host platforms like Render.
- Authentication & Cryptography:
- JWT Tokens (
jsonwebtoken): Stateless bearer token verification for protected endpoints. - Bcrypt Hashing (
bcryptjs): Salted password hashing (12 rounds) protecting credentials. - Time-Limited OTPs: 6-digit codes with 5-minute expiration windows for verified registrations.
- JWT Tokens (
- Network & Proxy Hardening:
- Express
trust proxyconfigured for Render, Vercel, and Cloudflare reverse proxies. - Route-specific rate limiters (
authLimiter,otpLimiter) mitigating brute-force and spam vectors. - Dynamic CORS resolution supporting local dev, staging, and wildcard production origins (
*.vercel.app).
- Express
┌────────────────────────────────────────────────────────────────────────┐
│ VibeLane Client (React 19 + Vite) │
│ Lenis Scroll │ Framer Motion │ Tailwind CSS v4 │ Admin Dashboard │
└───────────────────────────────────┬────────────────────────────────────┘
│ HTTPS / REST (JSON)
┌───────────────────────────────────▼────────────────────────────────────┐
│ VibeLane API Server (Node / Express) │
│ Reverse Proxy Trust │ Rate Limiting │ JWT RBAC │ Centralized Errors │
└─────────────┬─────────────────────┬───────────────────────┬────────────┘
│ │ │
HTTPS (Port 443) SQL Queries (Pool) In-Memory Caching (TTL)
│ │ │
┌─────────────▼─────────┐ ┌─────────▼─────────────┐ ┌───────▼────────────┐
│ Resend Email API │ │ Supabase PostgreSQL │ │ Redis Cache │
│ Instant OTP Delivery │ │ Users, Orders, Catalog│ │ Sub-ms Catalogs │
└───────────────────────┘ └───────────────────────┘ └────────────────────┘
| Domain | Technology | Production Role |
|---|---|---|
| Frontend Framework | React 19 + Vite 8 | High-speed component rendering, strict mode compliance, instant HMR |
| Styling & Theme | Tailwind CSS v4 | CSS-first configuration via @tailwindcss/vite |
| Motion & Dynamics | Framer Motion + Lenis | Kinetic reveals, layout animations & smooth inertial scrolling |
| Client Routing | React Router v7 | Protected customer & admin layouts, dynamic slug matching |
| Icons | Lucide React | Vector iconography |
| Server Engine | Node.js & Express.js | RESTful API server using modern ES Modules |
| Primary Database | Supabase (PostgreSQL 15) | Relational database storage with Row Level Security |
| Caching Layer | Redis via ioredis | Sub-millisecond product & category caching tier |
| Transactional Email | Resend (Node.js SDK) | HTTPS-based transactional OTP delivery |
| Security & Auth | JWT, Bcrypt.js, Express Rate Limit | Tokenized authorization, password hashing, and anti-abuse protection |
VibeLane-Ecom/
├── frontend/ # Client Application (React 19 + Vite + Tailwind v4)
│ ├── public/ # Static media, lookbook assets & favicon.svg
│ ├── src/
│ │ ├── assets/ # Static imagery & brand marks
│ │ ├── components/ # Modular UI components
│ │ │ ├── auth/ # AdminRoute.jsx (RBAC client guard)
│ │ │ ├── hero/ # HeroTitle.jsx, BagTitle.jsx (kinetic text)
│ │ │ ├── layout/ # Navbar, Footer, Manifesto, SplashScreen, Loaders
│ │ │ └── lookbook/ # Lookgrid.jsx (staggered asymmetric grid)
│ │ ├── context/ # Global state management (AppContext.jsx)
│ │ ├── hooks/ # Custom hooks (useProducts.js, useFetch.js)
│ │ ├── pages/ # Route views (Home, Bag, Checkout, Auth, Admin)
│ │ │ ├── AdminDashboard.jsx # Admin revenue & metrics overview
│ │ │ ├── AdminOrders.jsx # Admin order management & status updater
│ │ │ ├── Account.jsx # Customer profile management
│ │ │ ├── Orders.jsx # Customer order history
│ │ │ ├── ProductDetail.jsx # Dynamic single item page
│ │ │ ├── Privacy.jsx # Editorial Privacy Policy
│ │ │ └── Terms.jsx # Editorial Terms of Service
│ │ ├── services/ # API consumers (productService.js, adminService.js, api.js)
│ │ ├── styles/ # Global CSS & Tailwind imports (index.css)
│ │ ├── utils/ # Constants & formatting helpers
│ │ ├── App.jsx # Root application wrapper with Lenis & Router
│ │ └── main.jsx # React DOM 19 entrypoint
│ ├── index.html # HTML shell with Google Fonts (Inter, Inter Tight)
│ ├── vercel.json # Vercel SPA routing rewrites
│ ├── vite.config.js # Vite build config with Tailwind v4 plugin
│ └── package.json
│
├── backend/ # API Server (Node.js + Express + Supabase + Redis)
│ ├── src/
│ │ ├── config/ # db.js (Supabase), redis.js (ioredis client)
│ │ ├── constants/ # System & cache constants
│ │ ├── controllers/ # Request handlers (admin, auth, product, user, health)
│ │ ├── middleware/ # errorHandler, asyncHandler, authMiddleware, rateLimiter
│ │ ├── models/ # Mock fallback data & schemas
│ │ ├── routes/ # Route definitions (admin, auth, product, user, index)
│ │ ├── scripts/ # Seed scripts (seedSupabase.js, seedProducts.js)
│ │ ├── services/ # Business logic & cache layers (productService.js, mailService.js)
│ │ ├── utils/ # ApiResponse.js, AppError.js
│ │ ├── app.js # Express app configuration & CORS setup
│ │ └── server.js # Server entrypoint and port listener
│ ├── supabase_schema.sql # PostgreSQL table definitions & RLS policies
│ ├── .env.example # Environment variable reference
│ └── package.json
│
├── package.json # Root workspace orchestrator (concurrently)
└── README.md # Comprehensive documentation
- Node.js:
v18.0.0or higher - npm:
v9.0.0or higher - Supabase Account: Free project created on supabase.com
- Resend Account: Free account on resend.com
- Redis Server (Optional): Local Redis instance (
redis-server) or cloud provider (Upstash, Redis Cloud)
Clone the repository and install all dependencies across the entire workspace with a single command:
git clone https://github.com/devxbhabani/VibeLane.git
cd VibeLane
# Installs root, frontend, and backend packages concurrently
npm run install:all- Open your Supabase Project dashboard and navigate to the SQL Editor.
- Run the complete schema script found in
backend/supabase_schema.sql:
-- 1. Products Table
CREATE TABLE IF NOT EXISTS public.products (
id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
item_number VARCHAR(100) NOT NULL,
name VARCHAR(255) NOT NULL,
slug VARCHAR(255) UNIQUE,
category VARCHAR(100) NOT NULL,
price NUMERIC(10, 2) NOT NULL DEFAULT 0.00,
badge VARCHAR(50) DEFAULT '',
primary_image TEXT NOT NULL,
hover_image TEXT NOT NULL,
description TEXT DEFAULT '',
in_stock BOOLEAN DEFAULT TRUE,
stock_quantity INTEGER DEFAULT 20,
created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);
-- 2. Users Table
CREATE TABLE IF NOT EXISTS public.users (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
email VARCHAR(255) UNIQUE NOT NULL,
password_hash TEXT NOT NULL,
name VARCHAR(255) DEFAULT '',
role VARCHAR(50) DEFAULT 'customer',
is_verified BOOLEAN DEFAULT FALSE,
created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);
-- 3. Orders Table
CREATE TABLE IF NOT EXISTS public.orders (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
user_id UUID REFERENCES public.users(id) ON DELETE SET NULL,
email VARCHAR(255) NOT NULL,
items JSONB NOT NULL DEFAULT '[]'::jsonb,
total NUMERIC(10, 2) NOT NULL DEFAULT 0.00,
status VARCHAR(50) NOT NULL DEFAULT 'processing',
shipping_address JSONB DEFAULT '{}'::jsonb,
created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);
-- 4. OTP Verifications Table
CREATE TABLE IF NOT EXISTS public.otp_verifications (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
email VARCHAR(255) NOT NULL,
otp_hash TEXT NOT NULL,
type VARCHAR(50) DEFAULT 'signup',
expires_at TIMESTAMP WITH TIME ZONE NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);
-- Enable RLS and default policies
ALTER TABLE public.products ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Allow public read access on products" ON public.products FOR SELECT TO public USING (true);
CREATE POLICY "Allow write access on products" ON public.products FOR ALL TO public USING (true) WITH CHECK (true);Create backend/.env based on backend/.env.example:
PORT=5000
NODE_ENV=development
CLIENT_URL=http://localhost:5173
API_PREFIX=/api/v1
# Supabase Credentials
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-anon-or-service-role-key
# Redis In-Memory Cache (Defaults to local redis if omitted)
REDIS_URL=redis://127.0.0.1:6379
# Resend Email API (HTTP Protocol — Render Friendly)
RESEND_API_KEY=re_your_api_key_here
RESEND_FROM_EMAIL=VibeLane <[email protected]>
# Security & Secrets
JWT_SECRET=your_super_secret_jwt_key_hereCreate frontend/.env:
VITE_API_BASE_URL=http://localhost:5000/api/v1Populate your Supabase PostgreSQL instance with the curated 16-item editorial catalog:
cd backend
npm run seed:supabaseStart both the backend API server and frontend client concurrently:
npm run devOr launch services independently:
| Service | Command | Address |
|---|---|---|
| Frontend Client | npm run dev:frontend |
http://localhost:5173 |
| Backend API | npm run dev:backend |
http://localhost:5000 |
All backend endpoints are prefixed with /api/v1:
| Method | Endpoint | Description | Cache Tier | Query Parameters |
|---|---|---|---|---|
GET |
/api/v1/health |
Service health status and timestamp | None | None |
GET |
/api/v1/products |
Retrieve catalog with filters | Redis (all_products:*) |
?category=, ?search=, ?sort=, ?minPrice=, ?maxPrice= |
GET |
/api/v1/products/categories |
Retrieve distinct categories | Redis (categories) |
None |
GET |
/api/v1/products/:id |
Fetch single product by id or slug |
Redis (product:*) |
None |
| Method | Endpoint | Description | Rate Limit | Access |
|---|---|---|---|---|
POST |
/api/v1/auth/signup |
Register account and trigger Resend email OTP | Protected (otpLimiter) |
Public |
POST |
/api/v1/auth/verifyotp |
Verify 6-digit OTP code and issue JWT | Protected (authLimiter) |
Public |
POST |
/api/v1/auth/login |
Authenticate with email/password and issue JWT | Protected (authLimiter) |
Public |
| Method | Endpoint | Description | Authorization |
|---|---|---|---|
GET |
/api/v1/user/:userId/profile |
Retrieve customer profile details | Bearer <token> |
PUT |
/api/v1/user/:userId/profile |
Update profile information | Bearer <token> |
GET |
/api/v1/user/:userId/orders |
Retrieve authenticated customer order history | Bearer <token> |
POST |
/api/v1/user/orders |
Place and finalize a new order | Bearer <token> |
| Method | Endpoint | Description | Authorization | Cache Action |
|---|---|---|---|---|
GET |
/api/v1/admin/orders |
List all orders across all customers | Bearer <admin_token> |
None |
PUT |
/api/v1/admin/orders/:id/status |
Update order status (shipped, delivered, etc.) |
Bearer <admin_token> |
Invalidates order cache |
- Create a new Web Service on Render.
- Connect your GitHub repository.
- Configure service parameters:
- Root Directory:
backend - Build Command:
npm install - Start Command:
npm start
- Root Directory:
- Set Environment Variables:
NODE_ENV:productionAPI_PREFIX:/api/v1SUPABASE_URL:https://your-project.supabase.coSUPABASE_KEY:your-supabase-keyRESEND_API_KEY:re_your_resend_api_keyRESEND_FROM_EMAIL:VibeLane <[email protected]>(or verified domain)JWT_SECRET:your_secure_jwt_secretCLIENT_URL:https://your-vibelane-site.vercel.app,http://localhost:5173
- Import repository on Vercel.
- Configure project parameters:
- Framework Preset:
Vite - Root Directory:
frontend
- Framework Preset:
- Set Environment Variable:
VITE_API_BASE_URL:https://your-render-service.onrender.com/api/v1
- Deploy! SPA client rewrites are automatically governed by
frontend/vercel.json.
- Editorial Design System: Inter Tight typography, brutalist dark palette (
#000000,#EDE4DD,#F31919DC), responsive viewport wordmarks. - Fluid Micro-interactions: Letter-by-letter masked typography reveals, kinetic left-to-right link underlines, dual-angle image hover crossfade.
- Performance & Smooth Scrolling: Lenis inertial scrolling integration with React 19 and Framer Motion viewport triggers.
- Full E-Commerce Journey: Lookbook catalog, category pills, dynamic product details, reactive bag, and simulated checkout flow.
- Customer Authentication: JWT bearer tokens, bcrypt password hashing, and Resend-backed 6-digit OTP verification.
- Enterprise Admin Suite: Real-time financial revenue metrics, volume breakdown, customer counts, and interactive order fulfillment updater.
- Resilient Data Architecture: Supabase PostgreSQL persistence with Redis in-memory caching and offline fallback capabilities.
- Cloud & Security Hardening: Express reverse proxy trust, strict CORS origin controls, rate-limiting shields, and port-agnostic email protocols.
Distributed under the MIT License. See LICENSE for details.
Designed & Developed with rebellious precision by devxbhabani.
© 2026 VibeLane Studio. All rights reserved.