A modern, feature-rich web platform designed to streamline production workflow management for small and medium-sized garment factories. ThreadFlow enables efficient order tracking, production stage monitoring, inventory management, and real-time delivery tracking.
- π Secure Authentication - Firebase auth with email/password and social login (Google/GitHub)
- π₯ Role-Based Access Control - Three user roles: Admin, Manager, and Buyer
- π¦ Product Management - Full CRUD operations with image uploads
- π Order System - Complete booking flow with payment integration
- π Real-Time Tracking - Visual timeline for production stages
- π³ Payment Integration - Stripe payment gateway support
- π Theme Toggle - Dark/Light mode on all pages
- π± Fully Responsive - Mobile-first design for all devices
- π Search & Filter - Advanced filtering on products and users
- π Pagination - Efficient data loading with pagination
- β¨ Smooth Animations - Framer Motion and GSAP animations
- π¨ Modern UI/UX - Clean, intuitive interface with DaisyUI components
- π Toast Notifications - Real-time feedback for all actions
- π Data Visualization - Charts and graphs using Recharts
- π« Account Suspension - Admin can suspend users with feedback system
- π― Dynamic Content - Products featured on homepage
- π Protected Routes - JWT token-based authentication
- π Form Validation - Comprehensive client-side validation
Live Site: ThreadFlow
Server Repository: ThreadFlow Server
- React 19.2.0 - Modern UI library with latest features
- Vite 7.2.4 - Lightning-fast build tool and dev server
- React Router 7.10.1 - Client-side routing
- TailwindCSS 4.1.17 - Utility-first CSS framework
- DaisyUI 5.5.8 - Tailwind CSS component library
- Styled Components 6.1.19 - CSS-in-JS library
- Motion 12.23.25 (Framer Motion) - Production-ready animations
- GSAP 3.14.2 - Professional-grade animation toolkit
- React Fast Marquee 1.6.5 - Smooth scrolling marquee
- Typewriter Effect 2.22.0 - Typewriter text animations
- React Icons 5.5.0 - Icon library
- React Image Gallery 1.4.0 - Image carousel component
- Swiper 12.0.3 - Modern touch slider
- React Hot Toast 2.6.0 - Beautiful toast notifications
- Firebase 12.6.0 - Authentication and real-time database
- JWT - JSON Web Token for secure authentication
- @stripe/react-stripe-js 5.4.1 - Stripe React components
- @stripe/stripe-js 8.5.3 - Stripe JavaScript SDK
- Recharts 3.5.1 - Composable charting library
- ESLint 9.39.1 - Code linting
- Vite Plugin React 5.1.1 - React integration for Vite
git clone https://github.com/yourusername/threadflow-client.git
cd threadflow-clientUsing npm:
npm installCreate a .env file in the root directory and add your credentials:
# Firebase Authentication Credentials
VITE_FB_API_KEY=your_firebase_api_key
VITE_FB_AUTH_DOMAIN=your_firebase_auth_domain
VITE_FB_PROJECT_ID=your_firebase_project_id
VITE_FB_STORAGE_BUCKET=your_firebase_storage_bucket
VITE_FB_MESSAGING_SENDER_ID=your_messaging_sender_id
VITE_FB_APP_ID=your_firebase_app_id
# ImgBB Credentials
VITE_IMG_BB_API_KEY=your_imgbb_api_key
# Stripe Publishable key
VITE_STRIPE_PUB_KEY=your_stripe_publishable_keynpm run devThe application will open at http://localhost:5173
npm run buildnpm run previewFull system control and oversight
Permissions:
- β View and manage all users (approve, suspend, change roles)
- β View, update, and delete all products
- β Control which products appear on homepage
- β View and manage all orders
- β Search and filter users
Dashboard Routes:
/dashboard/manage-users/dashboard/all-products/dashboard/all-orders/dashboard/profile
Product and order management capabilities
Permissions:
- β Add new products with full details
- β Manage own products (update/delete)
- β Approve or reject pending orders
- β Add tracking updates to approved orders
- β View production analytics
- β Cannot manage users
- β If suspended: Cannot add products or approve orders
Dashboard Routes:
/dashboard/add-product/dashboard/manage-products/dashboard/pending-orders/dashboard/approved-orders/dashboard/profile
Product browsing and order placement
Permissions:
- β Browse and search all products
- β Place orders for products
- β View own order history
- β Track orders in real-time
- β Cancel pending orders
- β Cannot access admin/manager features
- β If suspended: Cannot place new orders
Dashboard Routes:
/dashboard/my-orders/dashboard/track-order/:orderId/dashboard/profile
Active β
- Full access to role-specific features
Pending β³
- Limited access until admin approval
- Can browse but cannot perform critical actions
Suspended π«
- Buyer: Cannot place new orders, can view existing orders
- Manager: Cannot add products or approve orders
- Users receive suspension feedback explaining the reason
- Email/password with validation:
- β Must contain uppercase letter
- β Must contain lowercase letter
- β Minimum 6 characters length
- Social login (Google/GitHub)
- Role selection (Buyer/Manager)
- Default status: Pending
- Photo URL upload
- Real-time validation feedback
- Email/password authentication
- Google OAuth
- Remember me functionality
- JWT token stored in cookies
- Automatic redirect based on role
- Multiple image uploads with preview
- Demo video support
- Category organization
- Price and quantity tracking
- Minimum Order Quantity (MOQ)
- Payment options selection
- Homepage feature toggle
- 3-column responsive grid
- Quick view product cards
- Detailed product pages
- Image gallery with zoom
- Related products suggestions
- Auto-filled user information
- Quantity validation (min/max)
- Automatic price calculation
- Delivery address input
- Additional notes field
- Payment method selection
- Visual production timeline
- Real-time status updates
- Multi-stage tracking:
- βοΈ Cutting Completed
- π§΅ Sewing Started
- β¨ Finishing
- β QC Checked
- π¦ Packed
- π Shipped
- π Out for Delivery
- Pending: Awaiting manager approval
- Approved: In production
- Rejected: Order declined
- Completed: Order delivered
- Cancelled: User cancelled (only if pending)
- Cash on Delivery: No upfront payment required
- Stripe: Secure online payment (Not real transaction.)
Manage Users (/dashboard/manage-users)
- User table with search/filter
- Role update functionality
- Suspend/Activate users
- Suspend reason modal
- Pagination
All Products (/dashboard/all-products)
- Complete product list
- Update/Delete actions
- Homepage feature toggle
- Product statistics
All Orders (/dashboard/all-orders)
- Orders table
- Status filtering
- Order details view
- Search functionality
Add Product (/dashboard/add-product)
- Product creation form
- Image upload (multiple)
- Category selection
- MOQ configuration
- Payment options
Manage Products (/dashboard/manage-products)
- Own products table
- Update/Delete actions
- Search functionality
- Quick edit modal
Pending Orders (/dashboard/pending-orders)
- Orders awaiting approval
- Approve/Reject buttons
- Order details view
Approved Orders (/dashboard/approved-orders)
- Approved orders list
- Add tracking updates
- View tracking timeline
- Status management
My Orders (/dashboard/my-orders)
- Personal order history
- Status tracking
- Cancel pending orders
- Order details
Track Order (/dashboard/track-order/:orderId)
- Visual timeline
- Production stages
- Estimated delivery
- Real-time updates
- Product name search
- Category filtering
- Price range filtering
- Status-based filtering (orders)
- User role filtering (admin)
- Efficient data loading
- Customizable items per page
- Page navigation
- Total count display
- Light/Dark mode toggle
- Persistent theme preference
- Smooth theme transitions
- All pages supported
- Success/error toasts
- Real-time updates
- Action confirmations
- Custom styling
- Consistency: Uniform heading styles, spacing, and colors
- Readability: Balanced paragraph spacing and font sizes
- Responsive: Mobile-first approach for all devices
- Accessibility: WCAG compliant color contrast and keyboard navigation
- Modern: Latest design trends with smooth animations
Your Name
- GitHub: @Samioul51
- LinkedIn: A. K. M Samioul Islam
- Email: akmsamioulislam51@gmail.com
- Portfolio: A. K. M Samioul Islam