← Back to Projects
Full-Stack Web Application · E-Commerce

StyleHub
E-Commerce Platform

A production-grade, full-stack e-commerce platform with secure authentication, real payment gateway integration, and a feature-rich admin dashboard — built entirely with Python & Flask.

Python · Flask MySQL Razorpay JWT Auth Full Stack

Project Overview

StyleHub is a complete, production-grade retail e-commerce platform designed to handle real-world shopping workflows — from OTP-verified registration all the way to Razorpay payment checkout and admin-level inventory management.

Built with a clean Blueprint-based Flask architecture, StyleHub demonstrates end-to-end full-stack web development — secure authentication, payment processing, database design, and admin operations — all in Python.

Problem Statement

Building a real e-commerce platform is one of the hardest engineering challenges for a student developer. It requires mastering: auth systems, database design, payment security, session management, and UI — all simultaneously.

The goal was to build something a real startup could deploy — not a tutorial project.

Technical Architecture

The application follows a modular Blueprint architecture — each domain (auth, products, cart, orders, payments, admin) is isolated in its own route file, making it maintainable and scalable.

  • JWT Authentication with HS256 tokens, 24hr expiry, and server-side session storage
  • Razorpay Integration — HMAC-SHA256 signature verification on every payment
  • OTP Verification on registration — 6-digit code system
  • Role-based Access — @login_required and @admin_required decorators
  • MySQL with auto-ID triggers — USR00001, PROD0001, ORD00001 format
  • Bcrypt password hashing via Flask-Bcrypt

Key Features

  • Full product catalog with search, category filter, and sort
  • Live cart with real-time subtotal and shipping recalculation
  • COD + Razorpay payment options
  • Order history and detailed order tracking
  • Admin dashboard — KPI cards, sales analytics, top products
  • Low stock alerts (products with stock < 5 flagged automatically)
  • User management — view, block/unblock accounts
  • Payment transaction logs

Outcome & Learning

This project proved that a student developer can build production-level systems. StyleHub demonstrates mastery of the entire web development stack — backend, database, security, and payments — using Python alone.

Project Screenshots

Admin Dashboard
Admin Dashboard — KPIs, sales analytics, order management
Homepage
Homepage — Product listing with search & filter
Login
Secure Login with JWT Authentication
Products
Product Catalog — Category filter & sort
Checkout
Checkout — Address selection & order summary
Payments
Razorpay Payment Integration with HMAC verification