Rakib Hassan
ProjectsBlogAboutExperienceConnect
ResumeGitHub
Back to ProjectsE-Commerce

Input Gears — Tech Gadget Store

E-commerce platform for mechanical keyboards and enthusiast desk gear. Browse products with instant filtering, manage persistent carts across sessions, and complete secure checkouts with automated order tracking.

2025·Full Stack Developer

Client

Independent Build

Year

2025

Role

Full Stack Developer

LiveSource
inputgears.vercel.app
Visit ↗
Input Gears — Tech Gadget Store — case study preview

Executive Summary

The Challenge

Cart state persistence across reloads and slow catalog retrieval during traffic spikes with complex product inventory.

The Solution

Next.js 15 App Router, Upstash Redis in-memory cache-aside layer (<50ms), and Prisma ACID transactions on PostgreSQL.

Measurable Impact

Fast catalog responses with Redis caching, role-based access control, and secure Stripe checkout flow.

Technologies

Frontend
Next.js 15TypeScriptTailwind CSS v4Shadcn UIFramer MotionZustandRecharts
Backend
Server ActionsBetter-AuthStripe WebhooksUpstash RedisZod Validation
Database
PostgreSQLPrisma ORM
DevOps
VercelCloudinary

Key Decisions

Why Better-Auth over NextAuth or Clerk?

Better-Auth gave complete database ownership with zero third-party lock-in and seamless Prisma schema integration for multi-role accounts.

Why Upstash Redis for caching?

Serverless Redis handles spikes without cold-start penalties, keeping product catalog queries consistently under 50ms.

Why domain-driven module structure?

Separating features (cart, products, checkout) into isolated modules keeps the codebase maintainable as features expand.

Retrospective

Hardest Part

Role-based access control across storefront and admin — getting the middleware logic right for protected routes took significant planning.

Biggest Insight

Redis caching strategy matters more than raw database optimization for read-heavy e-commerce pages.

Do Differently

I would implement optimistic UI updates for the cart actions to make the user experience feel even more instantaneous.

Key Highlights

Multi-Role Admin & Storefront

Role-based views for customers and managers to streamline order processing.

Sub-50ms Catalog Caching

Upstash Redis cache-aside layer eliminates cold-start bottlenecks on high-traffic product listings.

Secure Stripe Fulfillment

Idempotent webhook signatures with transaction rollback protection against duplicate orders.

Admin Analytics & Inventory

Live revenue analytics, warehouse stock alerts, and coupon rule management in a unified console.

All Projects
Next Case StudySneho - Child Care Connect

Open to opportunities

Building something similar?

Let's talk
Shine, constantly and steadily.© 2026