Back to Projects
TPT Shop
Freelance Client ProjectA production e-commerce platform for a tailoring/clothing store — covering product catalog, inventory management, multi-step checkout, serverless image optimization, Razorpay payment processing, and a complete admin operations dashboard.
Tech Stack
- Frontend: Next.js, React, Jotai, TanStack Query, Radix UI
- Backend: Bun, Elysia, TypeScript, REST APIs
- Database: PostgreSQL, Prisma ORM, Redis
- Serverless & Media: AWS Lambda, S3 (Presigned URLs), CloudFront
- Auth: Google OAuth, OTP Email Login, JWT Cookies
- Payments: Razorpay Integration & Webhooks
Key Accomplishments
- Full-Stack Commerce Engine: Built and deployed a production commerce platform for a live client — 24 SSR/SSG pages, 49 reusable components, and 85 type-safe Bun/Elysia endpoints handling storefront browsing, multi-step checkout, admin operations, and payment reconciliation.
- Serverless Image Pipeline: Eliminated manual image processing by building an event-driven AWS Lambda function that auto-triggers on S3 upload, resizes each image into 3 device-optimized quality tiers, and persists variants to S3 with CloudFront distribution — reducing storefront asset delivery size across mobile, tablet, and desktop.
- Multi-Strategy Auth System: Secured the platform with Google OAuth, OTP email verification, JWT cookie sessions with automatic refresh, Jotai auth hydration, and role-based route guards protecting 64 endpoints.
- Razorpay Checkout Pipeline: Orchestrated a complete checkout flow — cart state, Razorpay payment capture, automatic token refresh on 401, and webhook-driven order finalization backed by Redis order intents and real-time stock validation.
- Admin Operations Dashboard: Shipped a 9-page admin dashboard enabling catalog CRUD, order lifecycle tracking, promo code management, admin permission controls, and automated payment reconciliation.
- Database Architecture & Rate Limiting: Designed a 17-model PostgreSQL schema (Prisma) spanning orders, payment events, promo redemptions, sessions, and inventory — hardened by Redis-backed rate limiting on 13 abuse-sensitive endpoints.