ShanTailor

ShanTailor is a modern, full-featured custom tailoring and design management platform. It offers a robust backend API and a beautiful, responsive frontend, supporting user authentication, design browsing, category management, pricing tools, and admin features for a seamless tailoring experience.

Key Features & How They Work

  • Authentication & User Management:
    • Sign up/sign in with email/password (with email verification), password recovery, and profile management.
    • Role-based access: Admins have elevated privileges for content management and moderation.
  • Design & Category Management:
    • Browse, filter, and search custom designs by category on the dedicated Designs page.
    • Admins can add, update, publish, or delete designs with images, specs, and pricing. Users can save favorite designs for quick access.
    • Admins manage categories, pricing, and images for full control over the catalog.
  • Pricing Tools:
    • View competitive prices, compare with market rates, and use a price calculator to estimate custom outfit costs.
  • Service Offerings:
    • Explore a wide range of tailoring services, including custom tailoring, wedding suits, men's tailoring, alterations, school uniforms, and more. Each service has a dedicated page with details.
  • Informational & Utility Pages:
    • Home page with company intro, values, and featured designs. About Us, Contact, Legal, and user account management pages for a complete user experience.
  • Admin Panel & Moderation:
    • Admin dashboard for managing users, designs, categories, images, and user activity. All publishing and content management actions are admin-only.
  • Additional Features:
    • Image uploads for designs and profiles, user preferences, performance optimizations, and dark/light mode for accessibility.

Technologies Used

  • Next.js & React (frontend, SSR, SEO, UI)
  • Tailwind CSS (responsive styling, dark/light mode)
  • TypeScript (type safety)
  • Redux Toolkit (state management)
  • Node.js & Express (backend API, modular architecture)
  • Prisma ORM (PostgreSQL database access, migrations)
  • JWT Authentication (secure, stateless sessions, role-based access)

Security, Error Handling & Performance

  • JWT authentication and role-based access control
  • Input validation and sanitization for all forms and uploads
  • Caching for frequently accessed data
  • Duplicate email prevention and email verification
  • API error interception and toast notifications
  • Loading states and user-friendly error messages
  • Session management and secure token storage
  • Image upload validation and automatic cleanup
  • Performance optimizations: efficient queries, responsive design